author | Frank Wein <mcsmurf@mcsmurf.de> |
Thu, 15 Nov 2012 11:30:48 +0100 | |
changeset 113372 | cbe5fc3e1ce5dd9f2039fd1827bbdcc6885b2906 |
parent 113371 | d95d4e953df5cec58abbf8116fe0b4be1f9acf60 |
child 113373 | 8043c63226d0533170938582b0f427dcdcf1d3dd |
push id | 23869 |
push user | emorley@mozilla.com |
push date | Thu, 15 Nov 2012 16:18:16 +0000 |
treeherder | mozilla-central@a37525d304d9 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | fabrice |
bugs | 811693 |
milestone | 19.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/apps/src/AppsUtils.jsm +++ b/dom/apps/src/AppsUtils.jsm @@ -240,17 +240,17 @@ this.AppsUtils = { /** * Helper object to access manifest information with locale support */ this.ManifestHelper = function(aManifest, aOrigin) { this._origin = Services.io.newURI(aOrigin, null, null); this._manifest = aManifest; let chrome = Cc["@mozilla.org/chrome/chrome-registry;1"].getService(Ci.nsIXULChromeRegistry) .QueryInterface(Ci.nsIToolkitChromeRegistry); - let locale = chrome.getSelectedLocale("browser").toLowerCase(); + let locale = chrome.getSelectedLocale("global").toLowerCase(); this._localeRoot = this._manifest; if (this._manifest.locales && this._manifest.locales[locale]) { this._localeRoot = this._manifest.locales[locale]; } else if (this._manifest.locales) { // try with the language part of the locale ("en" for en-GB) only let lang = locale.split('-')[0];