change intl.accept_languages in addition to general.useragent.locale
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 13 Nov 2008 20:26:38 +0000 (20:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 13 Nov 2008 20:26:38 +0000 (20:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11173 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/mozilla.js

index a758387..75c49cd 100644 (file)
@@ -63,6 +63,7 @@ util.mozilla.change_locale = function( locale ) {
         try { current_locale = util.mozilla.prefs().getCharPref('general.useragent.locale'); } catch(E) { alert('util.locale.change, prefs() = ' + E); }
         if (locale != current_locale) {
             util.mozilla.prefs().setCharPref('general.useragent.locale',locale);
+            util.mozilla.prefs().setCharPref('intl.accept_languages',locale);
             util.mozilla.chromeRegistry().reloadChrome();
         }