From 8eab9ed4625a0ee657841fd9e894065acdf6e69c Mon Sep 17 00:00:00 2001 From: Athurg Gooth Date: Fri, 8 Jan 2010 17:23:09 -0500 Subject: Make DEFAULT_LANG mean the default language for displayed messages. Signed-off-by: Loui Chang --- web/lib/aur.inc | 2 ++ web/lib/config.inc.proto | 6 +++--- web/lib/translator.inc | 16 ++++++++-------- 3 files changed, 13 insertions(+), 11 deletions(-) (limited to 'web') diff --git a/web/lib/aur.inc b/web/lib/aur.inc index f9401927..821288d0 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -295,6 +295,8 @@ function set_lang() { if ($LANG != DEFAULT_LANG ) { include_once("$LANG.po"); + } else { + include_once(DEFAULT_LANG.".po"); } return; diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto index c7a1f3c0..349a3ff7 100644 --- a/web/lib/config.inc.proto +++ b/web/lib/config.inc.proto @@ -1,6 +1,7 @@