1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-09 17:21:34 +00:00

change language in login form on the fly

This commit is contained in:
Andrew Dolgov
2007-08-11 15:42:26 +01:00
parent f8c612d483
commit 68659d9896
2 changed files with 12 additions and 2 deletions

View File

@@ -30,6 +30,10 @@
$lang = _TRANSLATION_OVERRIDE_DEFAULT;
}
if ($_COOKIE["ttrss_lang"]) {
$lang = $_COOKIE["ttrss_lang"];
}
if ($lang) {
_setlocale(LC_MESSAGES, $lang);
_bindtextdomain("messages", "locale");