From 994d5b2e7a0c921863e536d906e7c5c43e1a191f Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Tue, 23 Feb 2016 22:54:11 +0900 Subject: [PATCH] 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 --- devstack/plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 1ccd1af..372cc97 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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 }