mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
Changed to get a pref "general.useragent.locale" instead of using the locale service, bug 87880, r=ftang,matt, sr=alecf.
This commit is contained in:
parent
37035eaaa4
commit
cd90bee37e
@ -687,10 +687,7 @@ function get_remote_datasource_url() {
|
||||
debug("No lang code pref, intl.content.langcode.");
|
||||
debug("Use locale from user agent string instead");
|
||||
|
||||
var locale_contractid = '@mozilla.org/intl/nslocaleservice;1';
|
||||
var syslocale = Components.classes[locale_contractid].getService();
|
||||
syslocale = syslocale.QueryInterface(Components.interfaces.nsILocaleService);
|
||||
locale = syslocale.GetLocaleComponentForUserAgent();
|
||||
locale = prefs.getLocalizedUnicharPref("general.useragent.locale");
|
||||
} catch(ex) {
|
||||
debug("Unable to get system locale. What now? "+ex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user