diff options
author | Andrew Dolgov <[email protected]> | 2007-08-11 15:42:26 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-11 15:42:26 +0100 |
commit | 68659d98963d8ff021c77cae623e5682053db033 (patch) | |
tree | 95a39e3465ad9dbafa8b4fdfa44ed9e8d1ee0b78 /functions.php | |
parent | f8c612d48305cfb54c6bfe44c55689ed062eca88 (diff) |
change language in login form on the fly
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 1dd0f4935..f9d91e86e 100644 --- a/functions.php +++ b/functions.php @@ -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"); |