summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-11 14:22:35 +0100
committerAndrew Dolgov <[email protected]>2007-08-11 14:22:35 +0100
commit08e81c0b5c28d732a432f142de3f2c9316458a07 (patch)
tree2ee7d258e063de9eff6d1f93e58cb688a3fb40ac /functions.php
parent06c8a6d864520dcd3315b9fac590503cfeff0eb3 (diff)
UNDO: add lang dropbox on login form
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/functions.php b/functions.php
index a1ec8fa4b..cd30b4560 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;