devstack: compile translation message catalogs

Change-Id: Ia51d5bfd0f2c518107d330f90e8f5a2aa01dec42
This commit is contained in:
Akihiro Motoki committed 2016-02-21 23:22:07 +09:00
1 parent 1b83a89250
commit 28e52b3892
1 file changed
+5
+5
View File
@@ -8,6 +8,11 @@ function install_trove_dashboard {
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)
fi
}
# check for service enabled