summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-18 08:06:45 +0100
committermkanat%bugzilla.org <>2009-11-18 08:06:45 +0100
commit3606f75dd1d18e5a3419c0b679ba3288fd203cf5 (patch)
tree9d8c75d71cceb60d11eb7df1db27aacb293d6dae /js
parenta44e152480c9c22ca9b3a89da774317c5590d21b (diff)
downloadbugzilla-3606f75dd1d18e5a3419c0b679ba3288fd203cf5.tar.gz
bugzilla-3606f75dd1d18e5a3419c0b679ba3288fd203cf5.tar.xz
Bug 421265: Let the user easily override the language used to display HTML pages
Patch by Jacques Supcik <jacques@supcik.org> r=mkanat, a=mkanat
Diffstat (limited to 'js')
-rw-r--r--js/global.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/global.js b/js/global.js
index 77e40d4c8..2d3974150 100644
--- a/js/global.js
+++ b/js/global.js
@@ -110,3 +110,12 @@ function check_mini_login_fields( suffix ) {
window.alert( mini_login_constants.warning );
return false;
}
+
+function set_language( value ) {
+ YAHOO.util.Cookie.set('LANG', value,
+ {
+ expires: new Date('January 1, 2038'),
+ path: BUGZILLA.param.cookie_path
+ });
+ window.location.reload()
+}