automatic generation of LANGUAGES list in settings.py

Bug #1675298 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Akihiro Motoki
openstack i18n
Fix Released
Undecided
Unassigned

Bug Description

At now, LANGUAGES list in openstack_dashboard/settings.py is updated manually. It is better to generate the language list automatically based on the existence of PO files.

In horizon, there are four types of PO files ([horizon/locale, openstack_dashboard] * [django, djangojs]). It looks better to check whether all four types of PO files exist in the repo and list such languages.

Tags: i18n
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Added openstack-i18n to share the information

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/450126

Changed in horizon:
status: New → In Progress
Changed in horizon:
milestone: none → pike-1
Changed in horizon:
milestone: pike-1 → pike-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/450126
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a88092630014c53c9e6fe4ee9265f8443eea96bd
Submitter: Jenkins
Branch: master

commit a88092630014c53c9e6fe4ee9265f8443eea96bd
Author: Akihiro Motoki <email address hidden>
Date: Sun Mar 26 14:42:25 2017 +0000

    Generate language list automatically

    Previously the available language list is maintained manually.
    This commit change horizon to check translation message catalog
    is available for each language and generate the language list
    automatically. settings.LANGUAGES is still used to determines
    the initial set of languages and now defaults to the list provided
    by django.

    Change-Id: I9d9c934beebd7a641e2feb0d5cdfa839e0efa3c3
    Closes-Bug: #1675298

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.0.0b2

This issue was fixed in the openstack/horizon 12.0.0.0b2 development milestone.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

horizon patch will be released as part of Pike. This can be closed in openstack-i18n now.

Changed in openstack-i18n:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.