From 89cb787edd1c9d3c2fa2616c98986b130fcaf930 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Aug 2007 17:16:43 +0100 Subject: more translation work --- functions.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 25a8913a3..7c162be12 100644 --- a/functions.php +++ b/functions.php @@ -16,7 +16,11 @@ # Get locale from Accept-Language header $lang = al2gt(array("en_US", "ru_RU", "zh_CN", "fr_FR"), "text/html"); - + + if (defined('_TRANSLATION_OVERRIDE_DEFAULT')) { + $lang = _TRANSLATION_OVERRIDE_DEFAULT; + } + if ($lang) { _setlocale(LC_MESSAGES, $lang); _bindtextdomain("messages", "locale"); @@ -2207,7 +2211,7 @@ print "