From kde-commits Tue Jul 26 13:09:27 2011 From: Albert Astals Cid Date: Tue, 26 Jul 2011 13:09:27 +0000 To: kde-commits Subject: www/media/includes Message-Id: <20110726130927.5C321AC86A () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131168585709493 SVN commit 1243274 by aacid: add x-test language functionality M +16 -0 functions.inc --- trunk/www/media/includes/functions.inc #1243273:1243274 @@ -211,6 +211,7 @@ global $text; global $site_locale; + global $enable_xtest; $translate = func_get_arg(0); @@ -226,9 +227,16 @@ } else { + if ($enable_xtest and $site_locale == "x-test") + { + $result = "x".$translate."x"; + } + else + { $result = $translate; } } + } for ($i = 1; $i < func_num_args(); $i++) { $argument = func_get_arg($i); @@ -241,6 +249,7 @@ { global $text; global $site_locale; + global $enable_xtest; if ($site_locale == "en") { print $translate; @@ -253,10 +262,17 @@ } else { + if ($enable_xtest and $site_locale == "x-test") + { + print "x".$translate."x"; + } + else + { print $translate; } } } +} function languageName($code) {