[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: www/media/includes
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2011-07-26 13:09:27
Message-ID: 20110726130927.5C321AC86A () svn ! kde ! org
[Download RAW message or body]
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)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic