summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorAkihiro Motoki <motoki@da.jp.nec.com>2016-03-24 05:48:32 +0900
committerAkihiro Motoki <motoki@da.jp.nec.com>2016-03-25 22:17:56 +0900
commitc55852568f237e9f18aad670c05d484216ecc48e (patch)
treef64a64fd22af467e7b606f4c04de3164e6d4e907 /devstack
parent58f8a494e2971df7188fb03aac1e763eb90846ed (diff)
devstack: compile message catalogs during stack.sh
It is required to compile i18n message catalogs during stack.sh to display translated messages appropriately. Change-Id: Ic44d8d5b12be1a9128c871f223c9d8712b3205e1
Notes
Notes (review): Code-Review+2: Kiall Mac Innes <kiall@macinnes.ie> Code-Review+2: Graham Hayes <graham.hayes@hpe.com> Workflow+1: Graham Hayes <graham.hayes@hpe.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 29 Mar 2016 12:50:47 +0000 Reviewed-on: https://review.openstack.org/296788 Project: openstack/designate Branch: refs/heads/master
Diffstat (limited to 'devstack')
-rwxr-xr-xdevstack/plugin.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index 28befef..b886032 100755
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -139,6 +139,13 @@ function configure_designate {
139 configure_designate_backend 139 configure_designate_backend
140} 140}
141 141
142function configure_designatedashboard {
143 # Compile message catalogs
144 if [ -d ${DESIGNATEDASHBOARD_DIR}/designatedashboard/locale ]; then
145 (cd ${DESIGNATEDASHBOARD_DIR}/designatedashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages)
146 fi
147}
148
142# Configure the needed tempest options 149# Configure the needed tempest options
143function configure_designate_tempest() { 150function configure_designate_tempest() {
144 if is_service_enabled tempest; then 151 if is_service_enabled tempest; then
@@ -309,6 +316,10 @@ if is_service_enabled designate; then
309 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then 316 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
310 echo_summary "Configuring Designate" 317 echo_summary "Configuring Designate"
311 configure_designate 318 configure_designate
319 if is_service_enabled horizon; then
320 echo_summary "Configuring Designate dashboard"
321 configure_designatedashboard
322 fi
312 323
313 if is_service_enabled key; then 324 if is_service_enabled key; then
314 echo_summary "Creating Designate Keystone accounts" 325 echo_summary "Creating Designate Keystone accounts"