X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fsignout.php;h=ae78e121efd3d932845d9953b6ae415ac995dc56;hp=94abb2427293184222b3f30a00990d7dfe32c476;hb=288491a4c0647e032d61c0e8e50e1dcbbaea233e;hpb=d30d79f24098bb0e09a68467539912208434ac2f diff --git a/src/signout.php b/src/signout.php index 94abb242..ae78e121 100644 --- a/src/signout.php +++ b/src/signout.php @@ -9,6 +9,16 @@ $username = ""; $key = ""; $logged_in = 0; + + // $squirrelmail_language is set by a cookie when the user + // selects language + if (isset($squirrelmail_language)) { + if ($squirrelmail_language != "en") { + putenv("LANG=".$squirrelmail_language); + bindtextdomain("squirrelmail", "../locale/"); + textdomain("squirrelmail"); + } + } setcookie("username", "", time(), "/"); setcookie("key", "", time(), "/");