summaryrefslogtreecommitdiffstats
path: root/web/lib/translator.inc
diff options
context:
space:
mode:
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];