gecko-dev/intl
Zibi Braniecki a1a4f0b7c9 Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 883a91b249b6953b7872bfb9a8851e8be7257c7b
2017-03-11 18:43:11 -08:00
..
build Bug 943287 - Part 2. Use ICU version of nsICollation on all platform. r=hsivonen 2017-03-23 13:42:49 +09:00
chardet Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
hyphenation Bug 1341653 - Add NEWS to the local hyphen checkout to more easily track future updates. r=tjr 2017-02-27 14:25:27 -05:00
icu Bug 1345336 - Part 1. Remove empty zoneStrings entries. r=Waldo 2017-03-13 13:37:47 +09:00
icu-patches Bug 1325858 - Redundant handles open for HKLM\SYSTEM\ControlSet001\Control\TimeZoneInformation r=andrebargull 2016-12-30 16:36:05 +00:00
locale Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike 2017-03-11 18:43:11 -08:00
locales Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
lwbrk Bug 1342686 - Fix up the handling of surrogates in nsJISx4051LineBreaker. r=emk 2017-03-01 22:47:56 +00:00
strres Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps 2017-01-18 10:30:39 +00:00
tzdata Bug 1353649 - Update tzdata in ICU data files to 2017b. r=Waldo 2017-04-05 10:49:53 +02:00
uconv Bug 1351543 - Remove nsIPlatformCharset::GetDefaultCharsetForLocale. r=jfkthame 2017-03-31 10:40:19 +09:00
unicharutil Backed out 3 changesets (bug 1353000) for devtools failures a=backout CLOSED TREE 2017-04-12 10:59:12 -07:00
icu_sources_data.py Bug 1284406 part 3 - Export ICU headers in include/unicode. r=glandium 2016-07-20 15:00:13 +10:00
moz.build Bug 1333451 - add BUG_COMPONENT to intl/* files. r=m_kato 2017-01-27 08:18:44 -05:00
update-icu.sh Bug 1324240 - Also set LANGUAGE environment variable to ensure svn uses English instead of the OS locale. r=Waldo 2017-04-05 10:41:42 +02:00
update-tzdata.sh Bug 1324240 - Also set LANGUAGE environment variable to ensure svn uses English instead of the OS locale. r=Waldo 2017-04-05 10:41:42 +02:00