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/aur.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'web/lib/aur.inc') diff --git a/web/lib/aur.inc b/web/lib/aur.inc index ab52636a..d8402fd6 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -7,8 +7,6 @@ header('Pragma: no-cache'); include_once('translator.inc'); set_lang(); -include_lang('aur_po.inc'); -include_lang('common_po.inc'); include_once("config.inc"); include_once("version.inc"); @@ -254,8 +252,7 @@ function db_query($query="", $db_handle="") { # set up the visitor's language # function set_lang() { - global $_REQUEST; - global $_COOKIE; + global $_t; global $LANG; global $SUPPORTED_LANGS; @@ -295,6 +292,11 @@ function set_lang() { if ($update_cookie) { setcookie("AURLANG", $LANG, 0, "/"); } + + if ($LANG != DEFAULT_LANG ) { + include_once("$LANG.po"); + } + return; } -- cgit v1.2.3-24-g4f1b