From c55852568f237e9f18aad670c05d484216ecc48e Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 24 Mar 2016 05:48:32 +0900 Subject: [PATCH] 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 --- devstack/plugin.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 28befef58..b886032df 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -139,6 +139,13 @@ function configure_designate { configure_designate_backend } +function configure_designatedashboard { + # Compile message catalogs + if [ -d ${DESIGNATEDASHBOARD_DIR}/designatedashboard/locale ]; then + (cd ${DESIGNATEDASHBOARD_DIR}/designatedashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages) + fi +} + # Configure the needed tempest options function configure_designate_tempest() { if is_service_enabled tempest; then @@ -309,6 +316,10 @@ if is_service_enabled designate; then elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then echo_summary "Configuring Designate" configure_designate + if is_service_enabled horizon; then + echo_summary "Configuring Designate dashboard" + configure_designatedashboard + fi if is_service_enabled key; then echo_summary "Creating Designate Keystone accounts"