From 3606f75dd1d18e5a3419c0b679ba3288fd203cf5 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 18 Nov 2009 07:06:45 +0000 Subject: Bug 421265: Let the user easily override the language used to display HTML pages Patch by Jacques Supcik r=mkanat, a=mkanat --- js/global.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js') 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() +} -- cgit v1.2.3-24-g4f1b