summaryrefslogtreecommitdiff
path: root/pages/wot
diff options
context:
space:
mode:
Diffstat (limited to 'pages/wot')
-rw-r--r--pages/wot/9.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/pages/wot/9.php b/pages/wot/9.php
index 94523f2..d04c4fa 100644
--- a/pages/wot/9.php
+++ b/pages/wot/9.php
@@ -50,8 +50,15 @@
<tr>
<td class="DataTD"><?=_("Language")?>:</td>
<?
- $parts = explode("_", $userlang ,2);
- $printlang = strtolower($parts[0]);
+ $parts = explode("_", $userlang ,2);
+ if(count($parts == 2)){
+ $printlang = array_search( strtolower($parts[0])."_".strtoupper($parts[1]), L10n::$locales);
+ if($printlang === false){
+ $printlang = $parts[0];
+ }
+ }else{
+ $printlang = strtolower($parts[0]);
+ }
?>
<td class="DataTD" align="left"><? printf(_("%s prefers to be contacted in %s"), sanitizeHTML($user['fname']), L10n::$translations[$printlang]) ?></td>
</tr>