summaryrefslogtreecommitdiff
path: root/pages/wot
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-06-11 22:49:07 +0200
committerBenny Baumann <BenBE@geshi.org>2014-06-11 22:49:07 +0200
commita910c6bc7ea1f62fc3b0144697f6de485323a72b (patch)
treeaecc392f499e79506e8ea5cc7e58a23ec3e1c06c /pages/wot
parent61460601c64b6757e7d056bcb93d0b5e60125d32 (diff)
parent6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d (diff)
downloadcacert-devel-a910c6bc7ea1f62fc3b0144697f6de485323a72b.tar.gz
cacert-devel-a910c6bc7ea1f62fc3b0144697f6de485323a72b.tar.xz
cacert-devel-a910c6bc7ea1f62fc3b0144697f6de485323a72b.zip
Merge branch 'bug-1280' into testserver-stable
Diffstat (limited to 'pages/wot')
-rw-r--r--pages/wot/9.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/pages/wot/9.php b/pages/wot/9.php
index 3cdf259..839ba42 100644
--- a/pages/wot/9.php
+++ b/pages/wot/9.php
@@ -49,7 +49,18 @@
<? if($userlang != "") { ?>
<tr>
<td class="DataTD"><?=_("Language")?>:</td>
- <td class="DataTD" align="left"><? printf(_("%s prefers to be contacted in %s"), sanitizeHTML($user['fname']), L10n::$translations[$userlang]) ?></td>
+ <?
+ $userlang = explode("_", $userlang, 2);
+ if(count($userlang) == 2){
+ $printlang = array_search(strtolower($userlang[0]) . "_" . strtoupper($userlang[1]), L10n::$locales);
+ if($printlang === false){
+ $printlang = $userlang[0];
+ }
+ }else{
+ $printlang = strtolower($userlang[0]);
+ }
+ ?>
+ <td class="DataTD" align="left"><? printf(_("%s prefers to be contacted in %s"), sanitizeHTML($user['fname']), L10n::$translations[$printlang]) ?></td>
</tr>
<? } ?>
<?