Browse Source

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
tags/3.0.0.0b1
Akihiro Motoki 3 years ago
parent
commit
c55852568f
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      devstack/plugin.sh

+ 11
- 0
devstack/plugin.sh View File

@@ -139,6 +139,13 @@ function configure_designate {
139 139
     configure_designate_backend
140 140
 }
141 141
 
142
+function 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 149
 # Configure the needed tempest options
143 150
 function configure_designate_tempest() {
144 151
     if is_service_enabled tempest; then
@@ -309,6 +316,10 @@ if is_service_enabled designate; then
309 316
     elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
310 317
         echo_summary "Configuring Designate"
311 318
         configure_designate
319
+        if is_service_enabled horizon; then
320
+            echo_summary "Configuring Designate dashboard"
321
+            configure_designatedashboard
322
+        fi
312 323
 
313 324
         if is_service_enabled key; then
314 325
             echo_summary "Creating Designate Keystone accounts"

Loading…
Cancel
Save