summaryrefslogtreecommitdiff
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-01-19 16:29:45 -0500
committerLoui Chang <louipc.ist@gmail.com>2009-01-19 16:29:45 -0500
commit2ee327634831ec36df5fd74ccc35dfcedfdbe07b (patch)
treef6783fb393a8becdbbc04f380863269097ebe4d3 /web/lib/aur.inc
parent2194da8c9db7d2424b8992eedc6c98657a705e0f (diff)
Use new conglomerated translation files.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index ab52636..d8402fd 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;
}