1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-07 14:01:33 +00:00

UNDO: add lang dropbox on login form

This commit is contained in:
Andrew Dolgov
2007-08-11 14:22:35 +01:00
parent 06c8a6d864
commit 08e81c0b5c
2 changed files with 1 additions and 17 deletions

View File

@@ -8,16 +8,6 @@
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) {
require_once "accept-to-gettext.php";
require_once "gettext/gettext.inc";
@@ -25,7 +15,7 @@
function startup_gettext() {
# 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')) {
$lang = _TRANSLATION_OVERRIDE_DEFAULT;