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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user