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




7 years ago
4 years ago


(Reporter: Pike, Unassigned)


Dependency tree / graph

Firefox Tracking Flags

(blocking-fennec1.0 -, fennec-)





7 years ago
As you can see on, 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, should be the right spot.

Tested that that works with my AllLocales dummy app from
OS: Mac OS X → Android
Priority: -- → P2
Hardware: x86 → All
assigned to  Not really sure how to fix this.
Assignee: nobody → l10n

Comment 2

7 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

Comment 3

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

Need to investigate further.
Axel, since we are working on 'he' folder for localization and not 'iw', should it make any change in our current workflow?

Comment 5

7 years ago
shows my debugging in

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

and a bunch of deprecated three-letter codes.

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.

Comment 7

7 years ago 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
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: ? → -

Comment 10

5 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.