[open-ils-commits] r11628 - branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 19 13:50:26 EST 2008


Author: phasefx
Date: 2008-12-19 13:50:23 -0500 (Fri, 19 Dec 2008)
New Revision: 11628

Modified:
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js
Log:
backporting changeset 11173 for setting the intl.accept_languages pref in addition to general.useragent.locale

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js	2008-12-19 18:48:17 UTC (rev 11627)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js	2008-12-19 18:50:23 UTC (rev 11628)
@@ -63,6 +63,7 @@
         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();
         }
 



More information about the open-ils-commits mailing list