summaryrefslogtreecommitdiffstats
path: root/web/lib/translator.inc
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-01-19 22:29:45 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-01-19 22:29:45 +0100
commit2ee327634831ec36df5fd74ccc35dfcedfdbe07b (patch)
treef6783fb393a8becdbbc04f380863269097ebe4d3 /web/lib/translator.inc
parent2194da8c9db7d2424b8992eedc6c98657a705e0f (diff)
downloadaur-2ee327634831ec36df5fd74ccc35dfcedfdbe07b.tar.gz
aur-2ee327634831ec36df5fd74ccc35dfcedfdbe07b.tar.xz
Use new conglomerated translation files.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib/translator.inc')
-rw-r--r--web/lib/translator.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/lib/translator.inc b/web/lib/translator.inc
index 25f25245..24ede1a5 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)) {