Files
TravianZ/Templates/Manual/25.tpl
T
Ferywir a79f31746b 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>
2026-06-15 09:37:23 +03:00

19 lines
1.2 KiB
Smarty

<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&amp;s=41"><?php echo U41; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=42"><?php echo U42; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=43"><?php echo U43; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=34"><?php echo U44; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=45"><?php echo U45; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=46"><?php echo U46; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=47"><?php echo U47; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=48"><?php echo U48; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=49"><?php echo U49; ?></a></li>
<li><a href="manual.php?typ=1&amp;s=50"><?php echo U50; ?></a></li>
</ul>
<map id="nav" name="nav">
<area href="manual.php?typ=2&amp;s=4" title="<?php echo BACK; ?>" coords="0,0,45,18" shape="rect" alt="" />
<area href="manual.php?s=1" title="<?php echo OVERVIEW; ?>" coords="46,0,70,18" shape="rect" alt="" />
<area href="manual.php?typ=3&amp;s=1" title="forward" coords="71,0,116,18" shape="rect" alt="" />
</map>
<img usemap="#nav" src="img/x.gif" class="navi" alt="" />