mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 18:16:09 +00:00
524b9e7edd
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>
43 lines
2.6 KiB
Smarty
43 lines
2.6 KiB
Smarty
<?php
|
|
|
|
#################################################################################
|
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Project: TravianZ ##
|
|
## Version: 01.09.2013 ##
|
|
## Filename rank_search.tpl ##
|
|
## Refactored by Shadow ##
|
|
## License: TravianZ Project ##
|
|
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
|
## URLs: http://travian.shadowss.ro ##
|
|
## Source code: http://github.com/Shadowss/TravianZ/ ##
|
|
## ##
|
|
#################################################################################
|
|
|
|
if(!isset($_GET['id'])){ $_GET['id']='1'; }
|
|
?>
|
|
<table cellpadding="1" cellspacing="1" id="search_navi">
|
|
<tr>
|
|
<td>
|
|
<form method="post" action="statistiken.php?id=<?php echo isset($_GET['id'])? $_GET['id'] : 1; ?>">
|
|
<div class="search">
|
|
<span><?php echo RANK; ?><input type="text" class="text ra" maxlength="5" name="rank" value="<?php echo ($search == 0)? $start : $search; ?>" /></span>
|
|
<span class="or"><?php echo constant('OR'); ?></span>
|
|
<span><?php echo NAME; ?><input type="text" class="text name" maxlength="30" name="name" value="<?php if(!is_numeric($search)) {echo $search; } ?>" /></span>
|
|
<input type="hidden" name="ft" value="r<?php echo isset($_GET['id'])? $_GET['id'] : 1; ?>" />
|
|
<button value="submit" name="submit" id="btn_ok" class="trav_buttons" alt="OK" /> <?php echo TZ_OK_2; ?> </button>
|
|
</div>
|
|
</form>
|
|
<div class="navi">
|
|
<?php
|
|
if(count($rankArray) < 22){
|
|
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>";
|
|
}else if($start == 1 && $start + 20 < count($rankArray)) {
|
|
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." »";
|
|
}
|
|
?>
|