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
This commit is contained in:
Akihiro Motoki 2016-03-24 05:48:32 +09:00
parent 58f8a494e2
commit c55852568f

View File

@ -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"