From a97e590afc64b0b6ff50dfff5adb879ea3173135 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 19 Dec 2008 18:50:23 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/util/mozilla.js | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.11.0