l10n: full interface translation (FR/RO/IT/ZH) + EN fallback hardening (#186)

This commit is contained in:
Ferywir
2026-06-09 09:28:59 +02:00
committed by GitHub
parent 695a4352e8
commit 5d366284e6
381 changed files with 7969 additions and 4761 deletions
+25 -25
View File
@@ -74,13 +74,13 @@ if ($database->isVillageOases($dataarray[29])) {
<table cellpadding="1" cellspacing="1" id="report_surround">
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $message->readingNotice['topic']; ?></th>
<th><?php echo SUBJECT; ?>:</th>
<th><?php echo tz_loc_topic($message->readingNotice['topic']); ?></th>
</tr>
<tr>
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
<td class="sent">Sent:</td>
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span> <span>hour</span></td>
<td class="sent"><?php echo TZ_SENT; ?></td>
<td><?php echo ON; ?> <span><?php echo $date[0]." at ".$date[1]; ?></span> <span><?php echo TZ_HOUR; ?></span></td>
</tr>
</thead>
@@ -91,9 +91,9 @@ if ($database->isVillageOases($dataarray[29])) {
<table cellpadding="1" cellspacing="1" id="attacker">
<thead>
<tr>
<td class="role">Attacker</td>
<td class="role"><?php echo ATTACKER; ?></td>
<td colspan="<?php echo $colspan ?>">
<?php echo $user_url; ?> <?php echo $from_url ? 'from the village '.$from_url : ''; ?>
<?php echo $user_url; ?> <?php echo $from_url ? FROM_THE_VILL.' '.$from_url : ''; ?>
</td>
</tr>
</thead>
@@ -116,7 +116,7 @@ if ($hasHero) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
// TROOPS
for ($i = 3; $i <= 12; $i++) {
@@ -130,7 +130,7 @@ if ($hasHero) {
}
// CASUALTIES
echo "<tr><th>Casualties</th>";
echo "<tr><th>".CASUALTIES."</th>";
for ($i = 13; $i <= 22; $i++) {
echo ($dataarray[$i] == 0)
@@ -145,7 +145,7 @@ if ($hasHero) {
// PRISONERS (unchanged logic but safer sum)
if (!$spy && array_sum(array_slice($dataarray, 182, 11)) > 0) {
echo "</tr><tr><th>Prisoners</th>";
echo "</tr><tr><th>".PRISONERS."</th>";
for ($i = 182; $i <= 191; $i++) {
echo ($dataarray[$i] == 0)
@@ -168,9 +168,9 @@ if (!empty($dataarray[170]) && !empty($dataarray[171])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[170]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
<img class="unit u<?php echo $dataarray[170]; ?>" src="img/x.gif" alt="<?php echo U17; ?>" title="<?php echo U17; ?>" />
<?php echo $dataarray[171]; ?>
</td>
</tr>
@@ -181,9 +181,9 @@ if (!empty($dataarray[172]) && !empty($dataarray[173])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[172]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
<img class="unit u<?php echo $dataarray[172]; ?>" src="img/x.gif" alt="<?php echo U18; ?>" title="<?php echo U18; ?>" />
<?php echo $dataarray[173]; ?>
</td>
</tr>
@@ -194,9 +194,9 @@ if (!empty($dataarray[174]) && !empty($dataarray[175])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[174]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<img class="unit u<?php echo $dataarray[174]; ?>" src="img/x.gif" alt="<?php echo U19; ?>" title="<?php echo U19; ?>" />
<?php echo $dataarray[175]; ?>
</td>
</tr>
@@ -207,7 +207,7 @@ if ($spy) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[177]; ?>
</td>
@@ -219,7 +219,7 @@ if (!empty($dataarray[193])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[193]; ?>
</td>
@@ -231,9 +231,9 @@ if (!empty($dataarray[196]) && !empty($dataarray[197])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[196]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
<img class="unit u<?php echo $dataarray[196]; ?>" src="img/x.gif" alt="<?php echo U0; ?>" title="<?php echo U0; ?>" />
<?php echo $dataarray[197]; ?>
</td>
</tr>
@@ -244,7 +244,7 @@ if (!empty($dataarray[195])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[195]; ?>
</td>
@@ -253,7 +253,7 @@ if (!empty($dataarray[195])) {
<?php } elseif (empty($dataarray[176]) && empty($dataarray[177])) { ?>
<tbody class="goods">
<tr>
<th>Bounty</th>
<th><?php echo BOUNTY; ?></th>
<td colspan="<?php echo $colspan; ?>">
<div class="res">
<img class="r1" src="img/x.gif" /><?php echo $dataarray[23]; ?> |
@@ -289,9 +289,9 @@ foreach ($defArray as $index => $value) {
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</td>
<td class="role"><?php echo DEFENDER; ?></td>
<td colspan="<?php echo (!empty($dataarray[$heroIndex])) ? 11 : 10; ?>">
<?php echo ($index == 0) ? $defuser_url." from the village ".$deffrom_url : "Reinforcement"; ?>
<?php echo ($index == 0) ? $defuser_url." ".FROM_THE_VILL." ".$deffrom_url : REINFORCEMENT; ?>
</td>
</tr>
</thead>
@@ -310,7 +310,7 @@ if (!empty($dataarray[$heroIndex])) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
for ($i = $troopsStart; $i <= $troopsStart + 9; $i++) {
echo ($dataarray[$i] == 0)
@@ -322,7 +322,7 @@ if (!empty($dataarray[$heroIndex])) {
echo "<td>".$dataarray[$heroIndex]."</td>";
}
echo "<tr><th>Casualties</th>";
echo "<tr><th>".CASUALTIES."</th>";
for ($i = $troopsStart + 10; $i <= $troopsStart + 19; $i++) {
echo ($dataarray[$i] == 0)
+10 -10
View File
@@ -51,14 +51,14 @@ if ($fromName != "[?]") {
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $message->readingNotice['topic']; ?></th>
<th><?php echo SUBJECT; ?>:</th>
<th><?php echo tz_loc_topic($message->readingNotice['topic']); ?></th>
</tr>
<tr>
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
<td class="sent">Sent:</td>
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span> <span>hour</span></td>
<td class="sent"><?php echo TZ_SENT; ?></td>
<td><?php echo ON; ?> <span><?php echo $date[0]." at ".$date[1]; ?></span> <span><?php echo TZ_HOUR; ?></span></td>
</tr>
</thead>
@@ -74,7 +74,7 @@ if ($fromName != "[?]") {
<tr>
<td>&nbsp;</td>
<td>
<?php echo $user_url; ?> from the village <?php echo $from_url; ?>
<?php echo $user_url; ?> <?php echo FROM_THE_VILL; ?> <?php echo $from_url; ?>
</td>
</tr>
</thead>
@@ -82,20 +82,20 @@ if ($fromName != "[?]") {
<tbody>
<tr>
<th>Resources</th>
<th><?php echo RESOURCES; ?></th>
<td>
<!-- Resource display (unchanged logic) -->
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" />
<img class="r1" src="img/x.gif" alt="<?php echo TZ_WOOD; ?>" title="<?php echo TZ_WOOD; ?>" />
<?php echo $dataarray[2]; ?> |
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" />
<img class="r2" src="img/x.gif" alt="<?php echo CLAY; ?>" title="<?php echo CLAY; ?>" />
<?php echo $dataarray[3]; ?> |
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" />
<img class="r3" src="img/x.gif" alt="<?php echo IRON; ?>" title="<?php echo IRON; ?>" />
<?php echo $dataarray[4]; ?> |
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" />
<img class="r4" src="img/x.gif" alt="<?php echo CROP; ?>" title="<?php echo CROP; ?>" />
<?php echo $dataarray[5]; ?>
</td>
+8 -8
View File
@@ -54,14 +54,14 @@ if ($fromName != "[?]") {
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $message->readingNotice['topic']; ?></th>
<th><?php echo SUBJECT; ?>:</th>
<th><?php echo tz_loc_topic($message->readingNotice['topic']); ?></th>
</tr>
<tr>
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
<td class="sent">Sent:</td>
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span> <span>hour</span></td>
<td class="sent"><?php echo TZ_SENT; ?></td>
<td><?php echo ON; ?> <span><?php echo $date[0]." at ".$date[1]; ?></span> <span><?php echo TZ_HOUR; ?></span></td>
</tr>
</thead>
@@ -75,9 +75,9 @@ if ($fromName != "[?]") {
<thead>
<tr>
<td class="role">Defender</td>
<td class="role"><?php echo DEFENDER; ?></td>
<td colspan="<?php echo $colspan; ?>">
<?php echo $user_url; ?> from the village <?php echo $from_url; ?>
<?php echo $user_url; ?> <?php echo FROM_THE_VILL; ?> <?php echo $from_url; ?>
</td>
</tr>
</thead>
@@ -102,7 +102,7 @@ if ($hasHero) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
// ======================== TROOPS ========================
for ($i = 4; $i <= 13; $i++) {
@@ -116,7 +116,7 @@ if ($hasHero) {
}
// ======================== CASUALTIES ========================
echo "<tr><th>Casualties</th>";
echo "<tr><th>".CASUALTIES."</th>";
for ($i = 14; $i <= 23; $i++) {
echo ($dataarray[$i] == 0)
+10 -10
View File
@@ -41,14 +41,14 @@ if ($type == 1) {
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $message->readingNotice['topic']; ?></th>
<th><?php echo SUBJECT; ?>:</th>
<th><?php echo tz_loc_topic($message->readingNotice['topic']); ?></th>
</tr>
<tr>
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
<td class="sent">Sent:</td>
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span> <span>hour</span></td>
<td class="sent"><?php echo TZ_SENT; ?></td>
<td><?php echo ON; ?> <span><?php echo $date[0]." at ".$date[1]; ?></span> <span><?php echo TZ_HOUR; ?></span></td>
</tr>
</thead>
@@ -62,14 +62,14 @@ if ($type == 1) {
<thead>
<tr>
<td class="role">Attacker</td>
<td class="role"><?php echo ATTACKER; ?></td>
<td colspan="<?php echo $colspan; ?>">
<a href="spieler.php?uid=<?php echo $attackerUid; ?>">
<?php echo $attackerName; ?>
</a>
from the village
<?php echo FROM_THE_VILL; ?>
<a href="karte.php?d=<?php echo $dataarray[1]."&amp;c=".$generator->getMapCheck($dataarray[1]); ?>">
<?php echo $database->getVillageField($dataarray[1], "name"); ?>
@@ -98,7 +98,7 @@ if ($hasHero) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
// TROOPS
for ($i = 4; $i <= 13; $i++) {
@@ -119,7 +119,7 @@ if ($hasHero) {
<!-- ======================== INFORMATION ======================== -->
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<?php
@@ -129,8 +129,8 @@ if ($hasHero) {
?>
<img src="<?php echo GP_LOCATE; ?>img/r/<?php echo $icon; ?>.gif"
alt="Event"
title="Event" />
alt="<?php echo TZ_EVENT; ?>"
title="<?php echo TZ_EVENT; ?>" />
<?php echo $message1; ?>
+22 -22
View File
@@ -75,14 +75,14 @@ if ($database->isVillageOases($dataarray[29])) {
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $message->readingNotice['topic']; ?></th>
<th><?php echo SUBJECT; ?>:</th>
<th><?php echo tz_loc_topic($message->readingNotice['topic']); ?></th>
</tr>
<tr>
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
<td class="sent">Sent:</td>
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span> <span>hour</span></td>
<td class="sent"><?php echo TZ_SENT; ?></td>
<td><?php echo ON; ?> <span><?php echo $date[0]." at ".$date[1]; ?></span> <span><?php echo TZ_HOUR; ?></span></td>
</tr>
</thead>
@@ -95,9 +95,9 @@ if ($database->isVillageOases($dataarray[29])) {
<table cellpadding="1" cellspacing="1" id="attacker">
<thead>
<tr>
<td class="role">Attacker</td>
<td class="role"><?php echo ATTACKER; ?></td>
<td colspan="<?php echo $colspan; ?>">
<?php echo $user_url; ?> from the village <?php echo $from_url; ?>
<?php echo $user_url; ?> <?php echo FROM_THE_VILL; ?> <?php echo $from_url; ?>
</td>
</tr>
</thead>
@@ -120,7 +120,7 @@ if ($hasHero) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
// TROOPS
for ($i = 3; $i <= 12; $i++) {
@@ -134,7 +134,7 @@ if ($hasHero) {
}
// CASUALTIES
echo "<tr><th>Casualties</th>";
echo "<tr><th>".CASUALTIES."</th>";
for ($i = 13; $i <= 22; $i++) {
echo ($dataarray[$i] == 0)
@@ -150,7 +150,7 @@ if ($hasHero) {
// PRISONERS
if (array_sum(array_slice($dataarray, 186, 11)) > 0) {
echo "</tr><tr><th>Prisoners</th>";
echo "</tr><tr><th>".PRISONERS."</th>";
for ($i = 186; $i <= 195; $i++) {
echo ($dataarray[$i] == 0)
@@ -175,9 +175,9 @@ if (!empty($dataarray[198]) && !empty($dataarray[199])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[198]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
<img class="unit u<?php echo $dataarray[198]; ?>" src="img/x.gif" alt="<?php echo U17; ?>" title="<?php echo U17; ?>" />
<?php echo $dataarray[199]; ?>
</td>
</tr>
@@ -188,9 +188,9 @@ if (!empty($dataarray[200]) && !empty($dataarray[201])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[200]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
<img class="unit u<?php echo $dataarray[200]; ?>" src="img/x.gif" alt="<?php echo U18; ?>" title="<?php echo U18; ?>" />
<?php echo $dataarray[201]; ?>
</td>
</tr>
@@ -201,9 +201,9 @@ if (!empty($dataarray[202]) && !empty($dataarray[203])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[202]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<img class="unit u<?php echo $dataarray[202]; ?>" src="img/x.gif" alt="<?php echo U19; ?>" title="<?php echo U19; ?>" />
<?php echo $dataarray[203]; ?>
</td>
</tr>
@@ -214,9 +214,9 @@ if (!empty($dataarray[205]) && !empty($dataarray[206])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<img class="unit u<?php echo $dataarray[205]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
<img class="unit u<?php echo $dataarray[205]; ?>" src="img/x.gif" alt="<?php echo U0; ?>" title="<?php echo U0; ?>" />
<?php echo $dataarray[206]; ?>
</td>
</tr>
@@ -227,7 +227,7 @@ if (!empty($dataarray[204])) {
?>
<tbody class="goods">
<tr>
<th>Information</th>
<th><?php echo INFORMATION; ?></th>
<td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[204]; ?>
</td>
@@ -248,9 +248,9 @@ $troopsStart = ($target * 21) + 35;
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</td>
<td class="role"><?php echo DEFENDER; ?></td>
<td colspan="<?php echo $colspan2; ?>">
<?php echo $defuser_url." from the village ".$deffrom_url; ?>
<?php echo $defuser_url." ".FROM_THE_VILL." ".$deffrom_url; ?>
</td>
</tr>
</thead>
@@ -265,13 +265,13 @@ for ($i = $start; $i <= ($start + 9); $i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"$unitName\" alt=\"$unitName\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
for ($i = $troopsStart; $i <= $troopsStart + 9; $i++) {
echo "<td class=\"none\">?</td>";
}
echo "<tr><th>Casualties</th>";
echo "<tr><th>".CASUALTIES."</th>";
for ($i = $troopsStart + 10; $i <= $troopsStart + 19; $i++) {
echo "<td class=\"none\">?</td>";
+9 -9
View File
@@ -55,14 +55,14 @@ if ($fromName != "[?]" || $fromId == 0) {
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $message->readingNotice['topic']; ?></th>
<th><?php echo SUBJECT; ?>:</th>
<th><?php echo tz_loc_topic($message->readingNotice['topic']); ?></th>
</tr>
<tr>
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
<td class="sent">Sent:</td>
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span><span> </span></td>
<td class="sent"><?php echo TZ_SENT; ?></td>
<td><?php echo ON; ?> <span><?php echo $date[0]." at ".$date[1]; ?></span><span> </span></td>
</tr>
</thead>
@@ -76,9 +76,9 @@ if ($fromName != "[?]" || $fromId == 0) {
<thead>
<tr>
<td class="role">sender</td>
<td class="role"><?php echo SENDER; ?></td>
<td colspan="<?php echo $colspan; ?>">
<?php echo $user_url; ?> from the village <?php echo $from_url; ?>
<?php echo $user_url; ?> <?php echo FROM_THE_VILL; ?> <?php echo $from_url; ?>
</td>
</tr>
</thead>
@@ -103,7 +103,7 @@ if ($hasHero) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
echo "</tr><tr><th>".TROOPS."</th>";
// ======================== TROOPS ========================
$unitarray = [];
@@ -132,10 +132,10 @@ if ($hasHero) {
<!-- ======================== UPKEEP ======================== -->
<tbody class="infos">
<tr>
<th>upkeep</th>
<th><?php echo UPKEEP; ?></th>
<td colspan="11">
<?php echo $technology->getUpkeep($unitarray, $dataarray[2]); ?>
<img src="img/x.gif" class="r4" title="Crop" alt="Crop" /> per hour
<img src="img/x.gif" class="r4" title="<?php echo CROP; ?>" alt="<?php echo CROP; ?>" /> per hour
</td>
</tr>
</tbody>
+28 -28
View File
@@ -10,29 +10,29 @@
// ======================== NOTICE TYPES ========================
$noticeClass = [
"Scout Report",
"Won as attacker without losses",
"Won as attacker with losses",
"Lost as attacker with losses",
"Won as defender without losses",
"Won as defender with losses",
"Lost as defender with losses",
"Lost as defender without losses",
"Reinforcement arrived",
TZ_RPT_SCOUT,
TZ_RPT_WON_ATK_NOLOSS,
TZ_RPT_WON_ATK_LOSS,
TZ_RPT_LOST_ATK_LOSS,
TZ_RPT_WON_DEF_NOLOSS,
TZ_RPT_WON_DEF_LOSS,
TZ_RPT_LOST_DEF_LOSS,
TZ_RPT_LOST_DEF_NOLOSS,
TZ_RPT_REINF_ARRIVED,
"",
"Wood Delivered",
"Clay Delivered",
"Iron Delivered",
"Crop Delivered",
TZ_RPT_WOOD_DELIVERED,
TZ_RPT_CLAY_DELIVERED,
TZ_RPT_IRON_DELIVERED,
TZ_RPT_CROP_DELIVERED,
"",
"Won as defender without losses",
"Won as defender with losses",
"Lost as defender with losses",
"Won scouting as attacker",
"Lost scouting as attacker",
"Won scouting as defender",
"Lost scouting as defender",
"Scout Report"
TZ_RPT_WON_DEF_NOLOSS,
TZ_RPT_WON_DEF_LOSS,
TZ_RPT_LOST_DEF_LOSS,
TZ_RPT_WON_SCOUT_ATK,
TZ_RPT_LOST_SCOUT_ATK,
TZ_RPT_WON_SCOUT_DEF,
TZ_RPT_LOST_SCOUT_DEF,
TZ_RPT_SCOUT
];
// ======================== GOLD CHECK (cached query) ========================
@@ -61,9 +61,9 @@ $queryBase = (!empty($_GET['t'])) ? 't='.$_GET['t'].'&amp;' : '';
<thead>
<tr>
<th colspan="2">Subject:</th>
<th colspan="2"><?php echo SUBJECT; ?>:</th>
<th class="sent">
<a href="berichte.php?o=1<?php echo (!empty($_GET['t']) ? '&amp;t='.$_GET['t'] : ''); ?>">Sent</a>
<a href="berichte.php?o=1<?php echo (!empty($_GET['t']) ? '&amp;t='.$_GET['t'] : ''); ?>"><?php echo SENT; ?></a>
</th>
</tr>
</thead>
@@ -84,15 +84,15 @@ $queryBase = (!empty($_GET['t'])) ? 't='.$_GET['t'].'&amp;' : '';
<th class="buttons">
<input name="del" type="image" id="btn_delete" class="dynamic_img"
src="img/x.gif" value="delete" alt="delete" />
src="img/x.gif" value="delete" alt="<?php echo DELETE; ?>" />
<?php if ($session->plus) { ?>
<?php if (isset($_GET['t']) && $_GET['t'] == 5) { ?>
<input name="start" type="image" value="back" alt="back"
<input name="start" type="image" value="back" alt="<?php echo BACK; ?>"
id="btn_back" class="dynamic_img" src="img/x.gif" />
<?php } else { ?>
<input name="archive" type="image" value="Archive" alt="Archive"
<input name="archive" type="image" value="Archive" alt="<?php echo ARCHIVE; ?>"
id="btn_archiv" class="dynamic_img" src="img/x.gif" />
<?php } ?>
@@ -187,7 +187,7 @@ for ($i = (1 + $s); $i <= (10 + $s); $i++) {
// ================= SUBJECT =================
echo "<div>
<a href=\"berichte.php?id=".$row['id']."\">".$row['topic']."</a>";
<a href=\"berichte.php?id=".$row['id']."\">".tz_loc_topic($row['topic'])."</a>";
if ($row['viewed'] == 0) {
echo " (new)";
@@ -208,7 +208,7 @@ for ($i = (1 + $s); $i <= (10 + $s); $i++) {
// ======================== EMPTY STATE ========================
if ($total == 0) {
echo "<tr><td colspan=\"3\" class=\"none\">There are no reports available.</td></tr>";
echo "<tr><td colspan=\"3\" class=\"none\">".NO_REPORTS.".</td></tr>";
}
?>