Closed
Bug 854487
Opened 12 years ago
Closed 3 years ago
Localize the list of countries
Categories
(Participation Infrastructure :: Phonebook, defect)
Participation Infrastructure
Phonebook
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: hoosteeno, Unassigned)
References
Details
(Whiteboard: [Triage 2015-04-17] [iam-RFE])
:pascalc noticed that the list of countries isn't localized (templates/includes/lang_switcher.html).
Pascal points out that there should be localized versions of the country names in another project (for example, Firefox). So we should be able to get those strings into our application, instead of just wrapping this in the translation code and thereby making hundreds of new strings to be localized.
:pascalc, can you describe at a high level how we would pre-localize these strings?
Comment 1•12 years ago
|
||
In the past what I did on the old mozilla.com PHP site was just to find the properties file in Mozilla source code that contains these strings, write a script that downloads them and convert them to the .lang format we use on mozilla.org, which was pretty straightforward as I already had a php parser for properties. I think there are equivalent python scripts in the gettext world, I am thinking specifically of:
http://translate.sourceforge.net/wiki/toolkit/prop2po
and
http://translate.sourceforge.net/wiki/toolkit/moz2po
The source file in Engish is there:
http://hg.mozilla.org/releases/l10n/mozilla-aurora/fr/file/default/toolkit/chrome/global/regionNames.properties
The source file for locales is there:
http://hg.mozilla.org/releases/mozilla-release/file/default/toolkit/locales/en-US/chrome/global/regionNames.properties
You just have to change the locale code, the locale code is the Firefox locale code following http standard, not gettext/Unix style ones, so pt-BR and not pt_BR and fr and not fr_FR
Comment 2•12 years ago
|
||
of course I mixed up the links :) the first link is the l10n source, the second is the en-US source.
Comment 3•3 years ago
|
||
This is an RFE specific to mozillians, which is decom'ed.
If this is found to pertain to people.mozilla.org then please open a new issue.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Whiteboard: [Triage 2015-04-17] → [Triage 2015-04-17] [iam-RFE]
You need to log in
before you can comment on or make changes to this bug.
Description
•