source_lang in Horizon repo is overwritten by Transifex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Ying Chun Guo |
Bug Description
I noticed source_lang in Horizon repo is overwritten by other translations on Transifex.
There are two problems and these two seem to be related to each other.
(1) While Source language in the Horizon repository is 'en' (defined by LANGUAGE_CODE in openstack_
source_lang in Transifex is 'en_US'. As a result, transifex client cannot find the source language.
(2) In addition Horizon on Transifex has 'en' as translation. The second situation leads to overwriting the source language in the repo (openstack_
A translation may contain wrong translation string, so we should not overwrite the source language by translations.
Issue (1) can usually be fixed by language mapping or source_file in Transifex client configuration
source_file = horizon/
issue (2) complicates the situation. The problem is which language we should map 'en' on Transifex into.
The best way is to remove the language 'en' on Transifex or switch the source language on Transifex from 'en_US' to 'en'.
But I am afraid changing the source language is not easy. I don't know why 'en' language in Horizon was created.
The alternative is to map 'en' on Transifex to a dummy language in Horizon repo.
Though it is an adhoc fix, I believe it is important to avoid overwriting 'en' locale in Horizon repo by running 'tx pull'.
(It is not good to do this by manual)
Changed in horizon: | |
importance: | Undecided → High |
milestone: | none → havana-1 |
status: | New → Confirmed |
Changed in horizon: | |
milestone: | havana-1 → havana-2 |
Changed in horizon: | |
milestone: | havana-2 → havana-3 |
Changed in horizon: | |
assignee: | nobody → Julie Pichon (jpichon) |
status: | Confirmed → In Progress |
Changed in horizon: | |
assignee: | Julie Pichon (jpichon) → Ying Chun Guo (daisy-ycguo) |
Changed in horizon: | |
assignee: | Akihiro Motoki (amotoki) → Ying Chun Guo (daisy-ycguo) |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | havana-3 → 2013.2 |
It sounds like we probably need to scrap the source language on Transifex and align it to the correct source language in Horizon. Doing that may screw up the existing translations, so what we need to do (I think?) is back up the current translations and be prepared to re-add them to Transifex if the whole thing goes haywire.
It also might be worth reaching out to Transifex's support and asking if they have a better suggestion for migrating the source language code to avoid all the pain.