From 68659d98963d8ff021c77cae623e5682053db033 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Aug 2007 15:42:26 +0100 Subject: change language in login form on the fly --- functions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions.php') 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"); -- cgit v1.2.3