Merge "devstack: compile translation message catalogs"

This commit is contained in:
Jenkins 2016-02-22 18:19:22 +00:00 committed by Gerrit Code Review
commit c4bc8bde4b

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