Alrighty, here we go:
Add these lines before
any code in the index.php (around line 43):
if(isset($_GET['lang']) && $_GET['lang'] != "" && $_GET['lang'] != $_COOKIE['RCMAILUSERLANG']) {
setcookie("RCMAILUSERLANG",$_GET['lang'],time()+60*60*24);
$_GET['RCMAILUSERLANG'] = $_GET['lang'];
}
Now, in the /program/include/main.inc, change line 95 from
$sess_user_lang = rcube_language_prop($_SESSION['user_lang']);
to this:
$sess_user_lang = strip_quotes(get_input_value('RCMAILUSERLANG', RCUBE_INPUT_GPC));;
Also, add this line after line 343 so that lines 343 and 344 read as follows:
setcookie('sessauth', '-del-', time()-60);
setcookie("RCMAILUSERLANG",'-del-',time()-60);
Basically, what's happening is that a cookie is set with the language code and that is used throughout the session until they log out. Also, if &lang= something different is added at any time in the session, it switches the active language in the cookie.
Hope this helps you out!!
--Jim