$lang = _TRANSLATION_OVERRIDE_DEFAULT;
}
+ if ($_COOKIE["ttrss_lang"]) {
+ $lang = $_COOKIE["ttrss_lang"];
+ }
+
if ($lang) {
_setlocale(LC_MESSAGES, $lang);
_bindtextdomain("messages", "locale");
<script type="text/javascript" src="pngfix.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <script type="text/javascript" src="functions.js"></script>
</head>
<body>
login.focus();
}
+function languageChange(elem) {
+ var lang = elem[elem.selectedIndex].value;
+ setCookie("ttrss_lang", lang);
+ window.location.reload();
+}
</script>
<script type="text/javascript">
<tr><td align="right"><?php echo __("Language:") ?></td>
<td align="right">
<?php
- print_select_hash("language", "", get_translations(),
- "style='width : 100%'");
+ print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
+ "style='width : 100%' onchange='languageChange(this)'");
?>
</td></tr>