зеркало из https://github.com/mozilla/gecko-dev.git
429ae74074
This new method allows for the user to override the long and short date and time patterns by prefs. If no overrides are set or it fails while processing the prefs, it will fallback to the existing methods for determining the patterns. Since the user may have only overriden one of date or time, it is necessary to be able to look up the other separately and combine the results. This adds a prefix callback that watches the new prefs and flushes the cache if they change. Otherwise, the user would have to restart the browser to see the results of changing a pref, and would make testing more difficult. Unregistering this callback required changes to the destructor, which was previously defined separately on each operating system. A new RemoveObservers method has been added to handle OS specific cleanup. Differential Revision: https://phabricator.services.mozilla.com/D94433 |
||
---|---|---|
.. | ||
android | ||
gtk | ||
mac | ||
rust | ||
tests | ||
windows | ||
DateTimeFormat.cpp | ||
DateTimeFormat.h | ||
LocaleService.cpp | ||
LocaleService.h | ||
MozLocale.cpp | ||
MozLocale.h | ||
MozLocaleBindings.h | ||
OSPreferences.cpp | ||
OSPreferences.h | ||
PluralForm.jsm | ||
Quotes.cpp | ||
Quotes.h | ||
cldr-quotes.inc | ||
cldr-quotes.pl | ||
components.conf | ||
encodingsgroups.properties | ||
language.properties | ||
moz.build | ||
mozILocaleService.idl | ||
mozIOSPreferences.idl | ||
nsCollation.cpp | ||
nsCollation.h | ||
nsCollationCID.h | ||
nsCollationFactory.cpp | ||
nsCollationFactory.h | ||
nsICollation.idl | ||
nsLanguageAtomService.cpp | ||
nsLanguageAtomService.h | ||
nsLocaleConstructors.h | ||
nsUConvPropertySearch.cpp | ||
nsUConvPropertySearch.h | ||
props2arrays.py |