i18n: render battle reports in each reader's language (EN/FR/RO) (#236)

This commit is contained in:
Ferywir
2026-06-17 15:24:37 +02:00
committed by GitHub
parent abe36748d7
commit 51c9cc5b2c
11 changed files with 309 additions and 86 deletions
+2 -2
View File
@@ -5187,8 +5187,8 @@ $q = "INSERT INTO ".TB_PREFIX."demolition VALUES (
'lvl' => $current_level
], false, $use_cache);
if ($allianceStatus === false) return ' This player\'s alliance has been dispersed.';
else if ($allianceStatus === 0) return ' Player was forced to leave their alliance.';
if ($allianceStatus === false) return ' ' . rc_tok('MSG_ALLIANCE_DISPERSED_STATUS');
else if ($allianceStatus === 0) return ' ' . rc_tok('MSG_FORCED_LEAVE_STATUS');
else return ''; // all is good, no need to append additional alliance-related text
}