mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-19 00:27: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 @@
|
||||
# - Minor safety fixes (undefined vars / repeated calls)
|
||||
#################################################################################
|
||||
|
||||
$dataarray = explode(",", $message->readingNotice['data']);
|
||||
$dataarray = array_map('tz_expand_report', explode(",", $message->readingNotice['data']));
|
||||
|
||||
// ======================== URL SETUP ========================
|
||||
|
||||
@@ -61,7 +61,7 @@ if ($fromName != "[?]") {
|
||||
<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>
|
||||
@@ -99,7 +99,7 @@ for ($i = $start; $i <= ($start + 9); $i++) {
|
||||
|
||||
// hero column
|
||||
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