mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-25 12:37:13 +00:00
fix(i18n): localize statistics page and troops Hero label [#197]
On a fresh install several strings were still hardcoded in English (reported on the live server, RO locale): - statistiken.php: the page <title>, the <h1> and the tab bar (Player / Alliances / Villages / Heroes / General) were literal English. - Templates/Ranking/ranksearch.tpl: the "back | forward" pagination links. - Templates/troops.tpl: the "Hero" troop-row label. Wire them to language constants. Reuse existing ones (STATISTICS, PLAYER, PLAYERS, VILLAGES, BACK, FORWARD, U0) and add three new constants (ALLIANCES, HEROES, GENERAL) to en/fr/ro. WW is kept as-is (universal acronym). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
committed by
Catalin Novgorodschi
parent
33da9fdad5
commit
524b9e7edd
@@ -31,12 +31,12 @@ if(!isset($_GET['id'])){ $_GET['id']='1'; }
|
||||
<div class="navi">
|
||||
<?php
|
||||
if(count($rankArray) < 22){
|
||||
echo "« back | forward »";
|
||||
echo "« ".BACK." | ".FORWARD." »";
|
||||
}else if($start != 1 && $start + 20 < count($rankArray)) {
|
||||
echo "<a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start - 20)."\">« back</a> | <a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start + 20)."\">forward »</a>";
|
||||
echo "<a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start - 20)."\">« ".BACK."</a> | <a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start + 20)."\">".FORWARD." »</a>";
|
||||
}else if($start == 1 && $start + 20 < count($rankArray)) {
|
||||
echo "« back | <a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start + 20)."\">forward »</a>";
|
||||
echo "« ".BACK." | <a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start + 20)."\">".FORWARD." »</a>";
|
||||
}else if($start != 1 && $start - 20 < count($rankArray)) {
|
||||
echo "<a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start - 20)."\">« back</a> | forward »";
|
||||
echo "<a href=\"statistiken.php?id=".$_GET['id']."&rank=".($start - 20)."\">« ".BACK."</a> | ".FORWARD." »";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -115,7 +115,7 @@ if (!empty($troops['hero'])) {
|
||||
</td>
|
||||
|
||||
<td class="un">
|
||||
Hero
|
||||
' . U0 . '
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user