summaryrefslogtreecommitdiffstats
path: root/web/lib/translator.inc
diff options
context:
space:
mode:
authoreric <eric>2004-06-19 16:36:22 +0200
committereric <eric>2004-06-19 16:36:22 +0200
commit22e8556691d134c4bf778837d4a0c24e4504b8cf (patch)
tree6cbeaebbcf2ea34ceff74539b48f2fb1d3fb5edc /web/lib/translator.inc
parent74594e516d699a3a95a4e8112c914b9225853de7 (diff)
downloadaur-22e8556691d134c4bf778837d4a0c24e4504b8cf.tar.gz
aur-22e8556691d134c4bf778837d4a0c24e4504b8cf.tar.xz
finished tweaking language selection
Diffstat (limited to 'web/lib/translator.inc')
-rw-r--r--web/lib/translator.inc15
1 files changed, 0 insertions, 15 deletions
diff --git a/web/lib/translator.inc b/web/lib/translator.inc
index 87fe7815..ca9e4dda 100644
--- a/web/lib/translator.inc
+++ b/web/lib/translator.inc
@@ -25,23 +25,8 @@ include_once("common_po.inc");
function __($tag, $args=array()) {
global $_t;
- global $_REQUEST;
global $LANG;
- $supported_langs = array(
- "en" => 1, # English
- "es" => 1, # Español
- "de" => 1, # Deutsch
- "fr" => 1, # Français
- );
-
- # default to English if the lang hasn't been provided or isn't supported
- #
- $LANG = $_REQUEST['LANG'];
- if (!$LANG || !array_key_exists($LANG, $supported_langs)) {
- $LANG = "en";
- }
-
# create the translation, if it doesn't exist, highlight it
#
$translated = $_t[$LANG][$tag];