From: phasefx Date: Thu, 13 Nov 2008 20:26:38 +0000 (+0000) Subject: change intl.accept_languages in addition to general.useragent.locale X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e0dd60a52bf2e608bd66b5d0e042f040d6f52059;p=Evergreen.git change intl.accept_languages in addition to general.useragent.locale git-svn-id: svn://svn.open-ils.org/ILS/trunk@11173 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(); }