зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
84b520b607
Коммит
cfa7baea01
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче