i18n: render system in-game messages in each reader's language (EN/FR/RO) (#237)

This commit is contained in:
Ferywir
2026-06-17 17:19:24 +02:00
committed by GitHub
parent 51c9cc5b2c
commit d008261678
9 changed files with 109 additions and 31 deletions
+1 -1
View File
@@ -107,7 +107,7 @@
// SUBJECT
// ======================================================
echo "<td class=\"top\">
<a href=\"nachrichten.php?id=" . $msg['id'] . "\">" . $msg['topic'] . "</a>";
<a href=\"nachrichten.php?id=" . $msg['id'] . "\">" . tz_expand_report($msg['topic']) . "</a>";
if ($msg['viewed'] == 0) {
echo " (new)";
+1 -1
View File
@@ -162,7 +162,7 @@
// SUBJECT
// ======================================================
echo "<td class=\"top\">
<a href=\"nachrichten.php?id=" . $msg['id'] . "\">" . $msg['topic'] . "</a>";
<a href=\"nachrichten.php?id=" . $msg['id'] . "\">" . tz_expand_report($msg['topic']) . "</a>";
if ($msg['viewed'] == 0) {
echo " (new)";
+2 -2
View File
@@ -10,7 +10,7 @@
// ======================================================
$reading = $message->reading;
$input = $reading['message'];
$input = tz_expand_report($reading['message']);
$alliance = $reading['alliance'];
$player = $reading['player'];
$coor = $reading['coor'];
@@ -77,7 +77,7 @@ $date = $generator->procMtime($reading['time']);
</div>
<!-- Subject -->
<div><?php echo $reading['topic']; ?></div>
<div><?php echo tz_expand_report($reading['topic']); ?></div>
</div>
+1 -1
View File
@@ -156,7 +156,7 @@ for ($i = (1 + $s); $i <= (10 + $s); $i++) {
// SUBJECT
// ======================================================
echo "<td class=\"top\">
<a href=\"nachrichten.php?t=2a&amp;id=" . $msg['id'] . "\">" . $msg['topic'] . "</a>";
<a href=\"nachrichten.php?t=2a&amp;id=" . $msg['id'] . "\">" . tz_expand_report($msg['topic']) . "</a>";
if ($msg['viewed'] == 0) {
echo " (unread)";