Revert "bug-1280: Parse the language code from the locale."
authorMichael Tänzer <neo@nhng.de>
Sat, 21 Jun 2014 15:37:54 +0000 (17:37 +0200)
committerMichael Tänzer <neo@nhng.de>
Sat, 21 Jun 2014 15:37:54 +0000 (17:37 +0200)
This reverts commit f3885b3bc9ff61da78fb541151f16b0ecfdf62eb.

pages/wot/9.php

index 94523f2..a8b9413 100644 (file)
 <? if($userlang != "") { ?>
   <tr>
     <td class="DataTD"><?=_("Language")?>:</td>
-    <?
-    $parts = explode("_", $userlang ,2);
-    $printlang = strtolower($parts[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>
 <? } ?>
 <?