diff options
author | mkanat%bugzilla.org <> | 2009-11-18 07:06:45 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-18 07:06:45 +0000 |
commit | 3606f75dd1d18e5a3419c0b679ba3288fd203cf5 (patch) | |
tree | 9d8c75d71cceb60d11eb7df1db27aacb293d6dae /js | |
parent | Bug 519142: Replace IF/ELSE statements about bug_status/resolution with just ... (diff) | |
download | bugzilla-3606f75dd1d18e5a3419c0b679ba3288fd203cf5.tar.gz bugzilla-3606f75dd1d18e5a3419c0b679ba3288fd203cf5.tar.bz2 bugzilla-3606f75dd1d18e5a3419c0b679ba3288fd203cf5.zip |
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.js | 9 |
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() +} |