mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
cce53c69bc
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 : 2f166cf1746f389a035f7cf557edcadeacb10fa0 |
||
---|---|---|
.. | ||
build | ||
chardet | ||
hyphenation | ||
icu | ||
icu-patches | ||
locale | ||
locales | ||
lwbrk | ||
strres | ||
tzdata | ||
uconv | ||
unicharutil | ||
icu_sources_data.py | ||
moz.build | ||
update-icu.sh | ||
update-tzdata.sh |