From: phasefx Date: Fri, 19 Dec 2008 18:50:23 +0000 (+0000) Subject: backporting changeset 11173 for setting the intl.accept_languages pref in addition... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a97e590afc64b0b6ff50dfff5adb879ea3173135;p=Evergreen.git backporting changeset 11173 for setting the intl.accept_languages pref in addition to general.useragent.locale git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11628 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js b/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js index a7583874f8..75c49cd4e5 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/mozilla.js @@ -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(); }