From 28e52b38924744dac8f060fdcb28401e117f6c4a Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sun, 21 Feb 2016 23:19:06 +0900 Subject: [PATCH] devstack: compile translation message catalogs Change-Id: Ia51d5bfd0f2c518107d330f90e8f5a2aa01dec42 --- devstack/plugin.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index bdf557f..1ccd1af 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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