mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 01:17:17 +00:00
i18n: render battle reports in each reader's language (EN/FR/RO) (#236)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# - No structural changes affecting gameplay
|
||||
#################################################################################
|
||||
|
||||
$dataarray = explode(",", $message->readingNotice['data']);
|
||||
$dataarray = array_map('tz_expand_report', explode(",", $message->readingNotice['data']));
|
||||
|
||||
// ======================== BASIC SETTINGS ========================
|
||||
$hasHero = (isset($dataarray[178]) && $dataarray[178] > 0);
|
||||
@@ -80,7 +80,7 @@ if ($database->isVillageOases($dataarray[29])) {
|
||||
<tr>
|
||||
<?php $date = $generator->procMtime($message->readingNotice['time']); ?>
|
||||
<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>
|
||||
<td><?php echo ON; ?> <span><?php echo $date[0]." ".TZ_AT." ".$date[1]; ?></span> <span><?php echo TZ_HOUR; ?></span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -113,7 +113,7 @@ for ($i = $start; $i <= ($start + 9); $i++) {
|
||||
}
|
||||
|
||||
if ($hasHero) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"".RC_HERO."\" alt=\"".RC_HERO."\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>".TROOPS."</th>";
|
||||
|
||||
Reference in New Issue
Block a user