map he->iw and id->in in nsLocaleService

NEW
Unassigned

Status

()

Firefox for Android
Locale switching and selection
P2
normal
6 years ago
3 years ago

People

(Reporter: Pike, Unassigned)

Tracking

unspecified
All
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(blocking-fennec1.0 -, fennec-)

Details

(URL)

(Reporter)

Description

6 years ago
As you can see on http://colincooper.net/?p=238, android is using two odd locale codes in their scheme, 'iw' instead of 'he', and 'in' instead of 'id'.

We need to map our locale codes with special case for this, http://hg.mozilla.org/projects/birch/file/f069ffc41471/embedding/android/Makefile.in#l173 should be the right spot.

Tested that that works with my AllLocales dummy app from https://github.com/Pike/android-l10n.

Updated

6 years ago
OS: Mac OS X → Android
Priority: -- → P2
Hardware: x86 → All

Comment 1

6 years ago
assigned to l10n@mozilla.com.  Not really sure how to fix this.
Assignee: nobody → l10n
(Reporter)

Comment 2

6 years ago
At least half of this is in bug 702302 now.

Not sure if we need some tweaks to matchOS logic, notably:
if you set the OS language to hebrew or indonesian, and that sends the java locale codes to nsPosixLocale.cpp, map them to the gecko versions, probably in that file.
Depends on: 702302
(Reporter)

Comment 3

6 years ago
My tests show that hebrew isn't picked up in the multi-locale build so far.

Need to investigate further.

Comment 4

6 years ago
Axel, since we are working on 'he' folder for localization and not 'iw', should it make any change in our current workflow?
(Reporter)

Comment 5

6 years ago
LANG: iw_IL
shows my debugging in http://mxr.mozilla.org/mozilla-central/source/intl/locale/src/nsLocaleService.cpp#167.

Simon, any recommendation on where we should make iw -> he again? Same for in->id. In nsLocaleService, or in nsPosixLocale?

(And no, the mapping is done on build time now)
I think in nsLocaleService. What about other deprecated language codes? 

From the IANA registry, there are also
ji->yi
jw->jv
mo->ro

and a bunch of deprecated three-letter codes.

<rant>
It's so annoying that we have to deal with this: in and iw were deprecated in *1989*, probably before the majority of users of Android devices were even born.
</rant>
(Reporter)

Comment 7

6 years ago
http://colincooper.net/?p=238 claims that only Yiddish is affected, too. Blames java for that, and whatever I find on the web isn't really authoritative but also only mentions the three of he, id, ji.
Hardware: All → ARM
tracking-fennec: --- → 11+
Keywords: fennecnative-releaseblocker

Comment 8

6 years ago
Pike,
what needs to be done here?
Keywords: fennecnative-releaseblocker
blocking-fennec1.0: --- → -
tracking-fennec: 11+ → ?
Pike, of this needs to track a given release, please renom and say which one
tracking-fennec: ? → -
(Reporter)

Comment 10

4 years ago
Not gonna work on this any time soon, unassigning.
Assignee: l10n → nobody
Blocks: 945122
Hardware: ARM → All
Blocks: 960060
Component: General → Locale switching and selection
Comment 6 seems to be the remaining work item here.
Summary: map he->iw and id->in for values-ab-CD/strings.xml → map he->iw and id->in in nsLocaleService
You need to log in before you can comment on or make changes to this bug.