Adding new languages requires too much work

Bug #1682452 reported by Honza Pokorny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Honza Pokorny

Bug Description

Right now, we have to create at least two patches for each new language that becomes available: one to update the tripleo-ui itself, and one to update the defaults in the puppet code. This is painful and takes a long time.

It would be better to automatically detect new languages and make them available in the GUI.

Tags: i18n ui
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :
Changed in tripleo:
milestone: pike-2 → pike-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ui (master)

Reviewed: https://review.openstack.org/456646
Committed: https://git.openstack.org/cgit/openstack/tripleo-ui/commit/?id=5c9a687bb7b5bb106f1d82f65193eb31fa75e0d8
Submitter: Jenkins
Branch: master

commit 5c9a687bb7b5bb106f1d82f65193eb31fa75e0d8
Author: Honza Pokorny <email address hidden>
Date: Thu Apr 13 11:28:16 2017 -0300

    Automatically enable all available languages

    Right now, we have to create at least two patches for each new language that
    becomes available: one to update the tripleo-ui itself, and one to update the
    defaults in the puppet code. This is painful and takes a long time.

    This patch turns things around. Instead of specifying which languages should be
    available, we automatically load all of them, and provide users with a way of
    disabling some of them should they need to. When a new language is imported
    from the translation team into our code, there is no work necessary.

    This is accomplished via Webpack plugin which reads the i18n/locales directory,
    parses the data, and generates a Javascript file with the necessary imports and
    other useful objects. The "languages" setting in the config file is changed to
    "excludedLanguages", and it's a simple list of language abbreviations.

    Futhermore, this patch adds a simple script that verifies that all available
    languages are properly enabled i the constants file.

    Closes-Bug: #1682452
    Change-Id: Idf5a3314c19be18ca6cabbae1e94bc7cb1d1fe94

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

This issue was fixed in the openstack/tripleo-ui 7.2.0 release.

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.