backporting changeset 11173 for setting the intl.accept_languages pref in addition...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 19 Dec 2008 18:50:23 +0000 (18:50 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 19 Dec 2008 18:50:23 +0000 (18:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11628 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();
         }