function get_translations() {
$tr = array(
- "" => "Detect automatically",
+ "auto" => "Detect automatically",
"en_US" => "English",
"fr_FR" => "Français",
"ru_RU" => "Русский",
/* bump login timestamp */
db_query($link, "UPDATE ttrss_users SET last_login = NOW() WHERE id = " .
$_SESSION["uid"]);
+
+ if ($_SESSION["language"]) {
+ setcookie("ttrss_lang", $_SESSION["language"],
+ time() + SESSION_COOKIE_LIFETIME);
+ }
}
} else {
}
function languageChange(elem) {
var lang = elem[elem.selectedIndex].value;
- setCookie("ttrss_lang", lang);
+ setCookie("ttrss_lang", lang, <?php print SESSION_COOKIE_LIFETIME ?>);
window.location.reload();
}
</script>