summaryrefslogtreecommitdiff
path: root/pages/wot
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-06-21 19:19:51 +0200
committerMichael Tänzer <neo@nhng.de>2014-06-21 19:19:51 +0200
commit340a1c8a2b428ec72fcc6531c4ee458aab28de88 (patch)
treeb18160f6f8f568982bbe21d2e10a487240cecf8f /pages/wot
parentf16112ebafba2295cbdea0f726679122e7f74b72 (diff)
parentda9630f06ea699f746002a41d167c09a42e7406f (diff)
downloadcacert-devel-340a1c8a2b428ec72fcc6531c4ee458aab28de88.tar.gz
cacert-devel-340a1c8a2b428ec72fcc6531c4ee458aab28de88.tar.xz
cacert-devel-340a1c8a2b428ec72fcc6531c4ee458aab28de88.zip
Merge branch 'bug-1280' into testserver-stable
Diffstat (limited to 'pages/wot')
-rw-r--r--pages/wot/9.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/pages/wot/9.php b/pages/wot/9.php
index 839ba42..20f2c6d 100644
--- a/pages/wot/9.php
+++ b/pages/wot/9.php
@@ -26,7 +26,7 @@
} else {
$user = mysql_fetch_array($res);
- $userlang = $user['language'];
+ $userlang = L10n::normalise_translation($user['language']);
$points = mysql_num_rows(mysql_query("select sum(`points`) as `total` from `notary`
where `to`='".intval($user['id'])."' and `deleted`=0 group by `to` HAVING SUM(`points`) > 0"));
if($points <= 0) {
@@ -49,18 +49,7 @@
<? if($userlang != "") { ?>
<tr>
<td class="DataTD"><?=_("Language")?>:</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>
+ <td class="DataTD" align="left"><? printf(_("%s prefers to be contacted in %s"), sanitizeHTML($user['fname']), L10n::$translations[$userlang]) ?></td>
</tr>
<? } ?>
<?