From: Andrew Dolgov Date: Sat, 11 Aug 2007 13:22:35 +0000 (+0100) Subject: UNDO: add lang dropbox on login form X-Git-Tag: 1.2.14~66 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=08e81c0b5c28d732a432f142de3f2c9316458a07;p=tt-rss.git UNDO: add lang dropbox on login form --- diff --git a/functions.php b/functions.php index a1ec8fa4..cd30b456 100644 --- a/functions.php +++ b/functions.php @@ -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; diff --git a/login_form.php b/login_form.php index 40e74615..55ad4b1a 100644 --- a/login_form.php +++ b/login_form.php @@ -50,12 +50,6 @@ window.onload = init; - - - -