Bug 983583 - define missing PREF_SELECTED_LOCALE for Australis menu panel, f=aryx, rs=me, a=gavin
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Fri, 14 Mar 2014 11:35:42 +0100
changeset 217440 b803b67591584e625160af3c47219db3bdee6b5e
parent 217439 cc0fd27015055e72756dcf4ac695bce2ccde70eb
child 217441 f7ce3f39d03d87d67496fc1be4e648b646e14e56
push id3
push usergszorc@mozilla.com
push dateWed, 29 Oct 2014 02:45:36 +0000
reviewersme, gavin
bugs983583
milestone29.0a2
Bug 983583 - define missing PREF_SELECTED_LOCALE for Australis menu panel, f=aryx, rs=me, a=gavin
browser/components/customizableui/content/panelUI.js
--- a/browser/components/customizableui/content/panelUI.js
+++ b/browser/components/customizableui/content/panelUI.js
@@ -455,16 +455,17 @@ const PanelUI = {
   },
 };
 
 /**
  * Gets the currently selected locale for display.
  * @return  the selected locale or "en-US" if none is selected
  */
 function getLocale() {
+  const PREF_SELECTED_LOCALE = "general.useragent.locale";
   try {
     let locale = Services.prefs.getComplexValue(PREF_SELECTED_LOCALE,
                                                 Ci.nsIPrefLocalizedString);
     if (locale)
       return locale;
   }
   catch (e) { }