gecko-dev/intl/locale
Zibi Braniecki a5600cdb98 Bug 1414390 - Add intl.locale.requested locale list to replace general.useragent.locale. r=jfkthame,mossop
This patch moves us from using an old pref `general.useragent.locale`combined
with `intl.locale.matchOS` for retrieving user requested locale, to use a new
preference `intl.locale.requested` which stores a list of well-formed BCP47
language tags. If set to empty, the OS locales are used. If not set at all,
default locale is used.

We are also adding a piece of code to migrate from old to new system.


MozReview-Commit-ID: 854yQ1kC6Ee

--HG--
extra : rebase_source : c4a7171bc026f857f7878ee83d973ec01b536a84
2017-11-01 20:16:21 -07:00
..
android Bug 943272 - Get rid of nsIPlatformCharset. r=emk 2017-11-27 12:45:14 +09:00
gtk Bug 1418724 - part 4 - Register for notifications from macOS when the user's locale preferences are updated. r=m_kato 2017-11-21 11:03:30 +00:00
mac Bug 943272 - Get rid of nsIPlatformCharset. r=emk 2017-11-27 12:45:14 +09:00
tests Bug 1414390 - Add intl.locale.requested locale list to replace general.useragent.locale. r=jfkthame,mossop 2017-11-01 20:16:21 -07:00
windows Bug 943272 - Get rid of nsIPlatformCharset. r=emk 2017-11-27 12:45:14 +09:00
DateTimeFormat.cpp Bug 1362817 - Drop the DateTimeFormat::FormatTime(). r=m_kato 2017-09-19 18:35:51 +09:00
DateTimeFormat.h Bug 1402234 - Remove the ENABLE_INTL_API=no code from intl/locale. r=jfkthame 2017-09-22 08:33:07 +02:00
encodingsgroups.properties Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen 2017-06-17 11:54:40 +09:00
langGroups.properties
language.properties
LocaleService.cpp Bug 1414390 - Add intl.locale.requested locale list to replace general.useragent.locale. r=jfkthame,mossop 2017-11-01 20:16:21 -07:00
LocaleService.h Bug 1352343 - Rename LocaleService::On* methods to LocaleService::*. r=jfkthame 2017-10-10 10:39:12 -07:00
moz.build Bug 943272 - Get rid of nsIPlatformCharset. r=emk 2017-11-27 12:45:14 +09:00
mozILocaleService.idl Bug 1418771 - Introduce LocaleService::LastFallbackLocale. r=jfkthame 2017-11-16 00:09:15 -03:00
mozIOSPreferences.idl Bug 1380916 - Introduce OSPreferences::GetRegionalPrefsLocales. r=jfkthame 2017-07-13 10:40:40 -07:00
nsCollation.cpp Bug 1391628 - Use fallback locale on nsICollation if locale is invalid. r=emk 2017-08-24 23:13:42 +09:00
nsCollation.h Bug 1402234 - Remove the ENABLE_INTL_API=no code from intl/locale. r=jfkthame 2017-09-22 08:33:07 +02:00
nsCollationCID.h
nsCollationFactory.cpp Bug 943287 - Part 2. Use ICU version of nsICollation on all platform. r=hsivonen 2017-03-23 13:42:49 +09:00
nsCollationFactory.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsICollation.idl Bug 1356263 - Remove nsLocaleService, nsILocaleService and ns*Locale APIs. r=m_kato 2017-08-03 02:33:51 -07:00
nsLanguageAtomService.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsLanguageAtomService.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsLocaleConstructors.h Bug 943272 - Get rid of nsIPlatformCharset. r=emk 2017-11-27 12:45:14 +09:00
nsUConvPropertySearch.cpp
nsUConvPropertySearch.h
OSPreferences.cpp Bug 1409185 - Generalize language-matching for date/time patterns in OSPreferences. r=jfkthame 2017-10-16 14:32:29 -07:00
OSPreferences.h Bug 1418724 - part 4 - Register for notifications from macOS when the user's locale preferences are updated. r=m_kato 2017-11-21 11:03:30 +00:00
PluralForm.jsm Bug 1415906 - Update references to Macedonian in PluralForm.jsm r=Pike 2017-12-01 10:13:04 +01:00
props2arrays.py