From 2ee327634831ec36df5fd74ccc35dfcedfdbe07b Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Mon, 19 Jan 2009 16:29:45 -0500 Subject: Use new conglomerated translation files. Signed-off-by: Loui Chang --- web/lib/translator.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/lib/translator.inc') diff --git a/web/lib/translator.inc b/web/lib/translator.inc index 25f2524..24ede1a 100644 --- a/web/lib/translator.inc +++ b/web/lib/translator.inc @@ -27,6 +27,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR include_once('config.inc'); +global $_t; + function include_lang($trans) { global $LANG; @@ -51,7 +53,7 @@ function __() { if (empty($LANG) || $LANG == DEFAULT_LANG) $translated = $tag; else - $translated = $_t[$LANG][$tag]; + $translated = $_t[$tag]; # If there is no translation, just print the given string. if (empty($translated)) { -- cgit v1.2.3-54-g00ecf