1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 15:05:56 +00:00

Fix automatic language detection for registered users

If you do not choose a language, the db pref record for your language is an empty string, but if you choose "automatic detection" and save your prefs, it's "auto".
"auto" in startup_gettext function prevents ttrss to choose the appropriate language.
This commit is contained in:
Luc Didry
2013-06-06 21:54:47 +03:00
parent 15a829013c
commit c4db796fc7

View File

@@ -100,7 +100,7 @@
if ($_SESSION["uid"] && get_schema_version() >= 120) { if ($_SESSION["uid"] && get_schema_version() >= 120) {
$pref_lang = get_pref("USER_LANGUAGE", $_SESSION["uid"]); $pref_lang = get_pref("USER_LANGUAGE", $_SESSION["uid"]);
if ($pref_lang) { if ($pref_lang && $pref_lang != 'auto') {
$lang = $pref_lang; $lang = $pref_lang;
} }
} }