Ensure to compile translation catalogs

A working directory in DevStack is not trove-dashboard directory,
so the directory path must be specified by an absolute path.

When I tested the devstack plugin for translation previously,
it seems compiled message catalogs existed and I didn't notice it.

Change-Id: Id5bab4aa627f06e023839290a1d3f46c09890bf8
This commit is contained in:
Akihiro Motoki 2016-02-23 22:54:11 +09:00
parent c4bc8bde4b
commit 994d5b2e7a

View File

@ -10,8 +10,8 @@ function configure_trove_dashboard {
cp -a ${TROVE_DASHBOARD_DIR}/trove_dashboard/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/
# NOTE: If locale directory does not exist, compilemessages will fail,
# so check for an existence of locale directory is required.
if [ -d trove_dashboard/locale ]; then
(cd trove_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages)
if [ -d ${TROVE_DASHBOARD_DIR}/trove_dashboard/locale ]; then
(cd ${TROVE_DASHBOARD_DIR}/trove_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages)
fi
}