mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 23:41:30 +00:00
UNDO: add lang dropbox on login form
This commit is contained in:
@@ -8,16 +8,6 @@
|
|||||||
|
|
||||||
require_once 'config.php';
|
require_once 'config.php';
|
||||||
|
|
||||||
function get_translations() {
|
|
||||||
$translations = array(
|
|
||||||
"en_US" => __("English"),
|
|
||||||
"ru_RU" => __("Russian"),
|
|
||||||
"zh_CN" => __("Chinese"),
|
|
||||||
"fr_FR" => __("French"));
|
|
||||||
|
|
||||||
return $translations;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ENABLE_TRANSLATIONS == true) {
|
if (ENABLE_TRANSLATIONS == true) {
|
||||||
require_once "accept-to-gettext.php";
|
require_once "accept-to-gettext.php";
|
||||||
require_once "gettext/gettext.inc";
|
require_once "gettext/gettext.inc";
|
||||||
@@ -25,7 +15,7 @@
|
|||||||
function startup_gettext() {
|
function startup_gettext() {
|
||||||
|
|
||||||
# Get locale from Accept-Language header
|
# Get locale from Accept-Language header
|
||||||
$lang = al2gt(array(array_keys(get_translations())), "text/html");
|
$lang = al2gt(array("en_US", "ru_RU", "zh_CN", "fr_FR"), "text/html");
|
||||||
|
|
||||||
if (defined('_TRANSLATION_OVERRIDE_DEFAULT')) {
|
if (defined('_TRANSLATION_OVERRIDE_DEFAULT')) {
|
||||||
$lang = _TRANSLATION_OVERRIDE_DEFAULT;
|
$lang = _TRANSLATION_OVERRIDE_DEFAULT;
|
||||||
|
|||||||
@@ -50,12 +50,6 @@ window.onload = init;
|
|||||||
<td align="right"><input name="login"></td></tr>
|
<td align="right"><input name="login"></td></tr>
|
||||||
<tr><td align="right"><?php echo __("Password:") ?></td>
|
<tr><td align="right"><?php echo __("Password:") ?></td>
|
||||||
<td align="right"><input type="password" name="password"></td></tr>
|
<td align="right"><input type="password" name="password"></td></tr>
|
||||||
<tr><td align="right"><?php echo __("Language:") ?></td>
|
|
||||||
<td align="right">
|
|
||||||
<?php
|
|
||||||
print_select_hash("language", "", get_translations());
|
|
||||||
?>
|
|
||||||
</td></tr>
|
|
||||||
<!-- <tr><td colspan="2">
|
<!-- <tr><td colspan="2">
|
||||||
<input type="checkbox" name="remember_me" id="remember_me">
|
<input type="checkbox" name="remember_me" id="remember_me">
|
||||||
<label for="remember_me">Remember me on this computer</label>
|
<label for="remember_me">Remember me on this computer</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user