mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fix(i18n/manual): translate troop-list titles via TROOPS/TRIBE constants
The five troop-overview pages hardcoded the English title "Troops (X)", so the in-game manual kept showing e.g. "Troops (Teutons)" even in French, inconsistent with the now-corrected unit/tribe names. Replace the hardcoded titles with the existing TROOPS and TRIBE1-5 constants (consistent with the #186 manual i18n migration) so the title follows the active language, e.g. "Troupes (Germains)" in French. en.php already defines all of these constants as the idempotent fallback, so other languages are unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
committed by
Catalin Novgorodschi
parent
84d736a342
commit
a79f31746b
@@ -1,4 +1,4 @@
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> Troops (Romans)</h1>
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> <?php echo TROOPS; ?> (<?php echo TRIBE1; ?>)</h1>
|
||||
<ul>
|
||||
<li><a href="manual.php?typ=1&s=1"><?php echo U1; ?></a></li>
|
||||
<li><a href="manual.php?typ=1&s=2"><?php echo U2; ?></a></li>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> Troops (Teutons)</h1>
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> <?php echo TROOPS; ?> (<?php echo TRIBE2; ?>)</h1>
|
||||
<ul>
|
||||
<li><a href="manual.php?typ=1&s=11"><?php echo U11; ?></a></li>
|
||||
<li><a href="manual.php?typ=1&s=12"><?php echo U12; ?></a></li>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> Troops (Gauls)</h1>
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> <?php echo TROOPS; ?> (<?php echo TRIBE3; ?>)</h1>
|
||||
<ul>
|
||||
<li><a href="manual.php?typ=1&s=21"><?php echo U21; ?></a></li>
|
||||
<li><a href="manual.php?typ=1&s=22"><?php echo U22; ?></a></li>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> Troops (Nature)</h1>
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> <?php echo TROOPS; ?> (<?php echo TRIBE4; ?>)</h1>
|
||||
<ul>
|
||||
<li><a href="manual.php?typ=1&s=51"><?php echo U31; ?></a></li>
|
||||
<li><a href="manual.php?typ=1&s=52"><?php echo U32; ?></a></li>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> Troops (Natars)</h1>
|
||||
<h1><img class="unit uunits" src="img/x.gif" alt="" title="" /> <?php echo TROOPS; ?> (<?php echo TRIBE5; ?>)</h1>
|
||||
<ul>
|
||||
<li><a href="manual.php?typ=1&s=41"><?php echo U41; ?></a></li>
|
||||
<li><a href="manual.php?typ=1&s=42"><?php echo U42; ?></a></li>
|
||||
|
||||
Reference in New Issue
Block a user