Merge "Add horizon internationalization for extra panels"
This commit is contained in:
commit
8a5b087c13
@ -64,6 +64,14 @@ function start () {
|
|||||||
# If the image has support for it, compile the translations
|
# If the image has support for it, compile the translations
|
||||||
if type -p gettext >/dev/null 2>/dev/null; then
|
if type -p gettext >/dev/null 2>/dev/null; then
|
||||||
cd ${SITE_PACKAGES_ROOT}/openstack_dashboard; /tmp/manage.py compilemessages
|
cd ${SITE_PACKAGES_ROOT}/openstack_dashboard; /tmp/manage.py compilemessages
|
||||||
|
# if there are extra panels and the image has support for it, compile the translations
|
||||||
|
{{- range .Values.conf.horizon.extra_panels }}
|
||||||
|
PANEL_DIR="${SITE_PACKAGES_ROOT}/{{ . }}"
|
||||||
|
if [ -d ${PANEL_DIR} ]; then
|
||||||
|
cd ${PANEL_DIR}; /tmp/manage.py compilemessages
|
||||||
|
fi
|
||||||
|
{{- end }}
|
||||||
|
unset PANEL_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Compress Horizon's assets.
|
# Compress Horizon's assets.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user