fix: blank in-game help + untranslated profile after l10n (#189) (#191)

This commit is contained in:
Ferywir
2026-06-09 16:48:16 +02:00
committed by GitHub
parent dad574be1a
commit e498563555
11 changed files with 141 additions and 28 deletions
+8 -8
View File
@@ -1,9 +1,9 @@
<h1><img class="point" src="img/x.gif" alt="" title="" /> <?php echo OVERVIEW; ?></h1>
<p>This ingame help offers you the chance to look up important information at any time.</p>
<p><?php echo MANUAL_INTRO; ?></p>
<img class="troops" src="img/x.gif" alt="<?php echo TROOPS; ?>" title="<?php echo TROOPS; ?>" />
<img class="buildings" src="img/x.gif" alt="Buildings" title="Buildings" />
<img class="buildings" src="img/x.gif" alt="<?php echo BUILDINGS; ?>" title="<?php echo BUILDINGS; ?>" />
<ul>
<li><a href="manual.php?s=1&amp;typ=2">The troops</a></li>
<li><a href="manual.php?s=1&amp;typ=2"><?php echo TROOPS; ?></a></li>
<ul>
<li><a href="manual.php?typ=2&amp;s=1"><?php echo TRIBE1; ?></a></li>
@@ -17,24 +17,24 @@
<br>
<li><a href="manual.php?typ=3&amp;s=1">The buildings</a></li>
<li><a href="manual.php?typ=3&amp;s=1"><?php echo BUILDINGS; ?></a></li>
<ul>
<li><a href="manual.php?typ=3&amp;s=1"><?php echo RESOURCES; ?></a></li>
<li><a href="manual.php?typ=3&amp;s=2"><?php echo Q17_BUTN1; ?></a></li>
<li><a href="manual.php?typ=3&amp;s=3">Infrastructure</a></li>
<li><a href="manual.php?typ=3&amp;s=3"><?php echo INFRASTRUCTURE; ?></a></li>
</ul>
<br>
<?php if(NEW_FUNCTIONS_OASIS || NEW_FUNCTIONS_ALLIANCE_INVITATION || NEW_FUNCTIONS_EMBASSY_MECHANICS || NEW_FUNCTIONS_FORUM_POST_MESSAGE || NEW_FUNCTIONS_TRIBE_IMAGES || NEW_FUNCTIONS_MHS_IMAGES || NEW_FUNCTIONS_DISPLAY_ARTIFACT || NEW_FUNCTIONS_DISPLAY_WONDER || NEW_FUNCTIONS_VACATION || NEW_FUNCTIONS_DISPLAY_CATAPULT_TARGET || NEW_FUNCTIONS_MANUAL_NATURENATARS || NEW_FUNCTIONS_DISPLAY_LINKS || NEW_FUNCTIONS_MEDAL_3YEAR || NEW_FUNCTIONS_MEDAL_5YEAR || NEW_FUNCTIONS_MEDAL_10YEAR) { ?>
<li><a href="manual.php?typ=13&amp;s=31">New features</a><br>These are new features that you will not find in the real version of the game Travian T3.6. Here you can get acquainted with all new features in more detail.</li><br>
<li><a href="manual.php?typ=13&amp;s=31"><?php echo NEW_FEATURES; ?></a><br><?php echo MANUAL_NEW_FEATURES_DESC; ?></li><br>
<?php } ?>
<li><a href="anleitung.php?s=3" target="_blank">Travian FAQ <img class="external" src="img/x.gif" alt="new window" title="new window" /></a><br>This ingame help just gives you brief information. More information is available at the <a href="http://travian.wikia.com/wiki/Travian_Wiki" target=blank>Fandom Travian Wiki</a>.</li>
<li><a href="anleitung.php?s=3" target="_blank"><?php echo MANUAL_FAQ; ?> <img class="external" src="img/x.gif" alt="<?php echo NEW_WINDOW; ?>" title="<?php echo NEW_WINDOW; ?>" /></a><br><?php echo MANUAL_FAQ_DESC; ?> <a href="http://travian.wikia.com/wiki/Travian_Wiki" target=blank>Fandom Travian Wiki</a>.</li>
</ul>
<map id="nav" name="nav">
<area href="manual.php?typ=3&amp;s=3" 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=2&amp;s=1" title="forward" coords="71,0,116,18" shape="rect" alt="" />
<area href="manual.php?typ=2&amp;s=1" title="<?php echo FORWARD; ?>" coords="71,0,116,18" shape="rect" alt="" />
</map>
<img usemap="#nav" src="img/x.gif" class="navi" alt="" />
+6 -6
View File
@@ -27,7 +27,7 @@ $sParam = isset($_GET['s']) ? (int)$_GET['s'] : null;
<!-- ================= OVERVIEW ================= -->
<a href="spieler.php?uid=<?php echo $menuUid; ?>"
<?php echo $selectedUid ? 'class="selected"' : ''; ?>>
Overview
<?php echo OVERVIEW; ?>
</a>
|
@@ -35,7 +35,7 @@ $sParam = isset($_GET['s']) ? (int)$_GET['s'] : null;
<!-- ================= PROFILE ================= -->
<a href="spieler.php?s=1"
<?php echo ($sParam === 1) ? 'class="selected"' : ''; ?>>
Profile
<?php echo PROFILE; ?>
</a>
|
@@ -43,7 +43,7 @@ $sParam = isset($_GET['s']) ? (int)$_GET['s'] : null;
<!-- ================= PREFERENCES ================= -->
<a href="spieler.php?s=2"
<?php echo ($sParam === 2) ? 'class="selected"' : ''; ?>>
Preferences
<?php echo PREFERENCES; ?>
</a>
|
@@ -51,7 +51,7 @@ $sParam = isset($_GET['s']) ? (int)$_GET['s'] : null;
<!-- ================= ACCOUNT ================= -->
<a href="spieler.php?s=3"
<?php echo ($sParam === 3) ? 'class="selected"' : ''; ?>>
Account
<?php echo ACCOUNT; ?>
</a>
<?php
@@ -61,7 +61,7 @@ $sParam = isset($_GET['s']) ? (int)$_GET['s'] : null;
|
<a href="spieler.php?s=5"
<?php echo ($sParam === 5) ? 'class="selected"' : ''; ?>>
Vacation
<?php echo VACATION; ?>
</a>
<?php
}
@@ -72,7 +72,7 @@ $sParam = isset($_GET['s']) ? (int)$_GET['s'] : null;
|
<a href="spieler.php?s=4"
<?php echo ($sParam === 4) ? 'class="selected"' : ''; ?>>
Graphic pack
<?php echo GRAPH_PACK; ?>
</a>
<?php
}
+1 -1
View File
@@ -24,7 +24,7 @@ $hasUid = isset($_GET['uid']);
<!-- ================= OVERVIEW (ACTIVE) ================= -->
<a href="spieler.php?uid=<?php echo $menuUid; ?>"
<?php echo $hasUid ? 'class="selected"' : ''; ?>>
Overview
<?php echo OVERVIEW; ?>
</a>
|
+13 -13
View File
@@ -85,7 +85,7 @@ if ($uid == $session->uid) {
<tr>
<th colspan="2">
Player <?php echo htmlspecialchars($displayarray['username'], ENT_QUOTES, 'UTF-8'); ?>
<?php echo PLAYER; ?> <?php echo htmlspecialchars($displayarray['username'], ENT_QUOTES, 'UTF-8'); ?>
</th>
</tr>
@@ -94,16 +94,16 @@ if ($uid == $session->uid) {
// STATUS FLAGS
// =========================
if ($displayarray['access'] == ADMIN)
echo "<tr><th colspan='2'><font color='Red'><center><b>This player is Admin.</b></center></font></th></tr>";
echo "<tr><th colspan='2'><font color='Red'><center><b>".PROFILE_FLAG_ADMIN."</b></center></font></th></tr>";
if ($displayarray['access'] == MULTIHUNTER)
echo "<tr><th colspan='2'><font color='Blue'><center><b>This player is Multihunter.</b></center></font></th></tr>";
echo "<tr><th colspan='2'><font color='Blue'><center><b>".PROFILE_FLAG_MULTIHUNTER."</b></center></font></th></tr>";
if ($displayarray['access'] == BANNED)
echo "<tr><th colspan='2'><font color='Green'><center><b>This player is BANNED.</b></center></font></th></tr>";
echo "<tr><th colspan='2'><font color='Green'><center><b>".PROFILE_FLAG_BANNED."</b></center></font></th></tr>";
if ($displayarray['vac_mode'] == 1)
echo "<tr><th colspan='2'><font color='Maroon'><center><b>This player is on VACATION.</b></center></font></th></tr>";
echo "<tr><th colspan='2'><font color='Maroon'><center><b>".PROFILE_FLAG_VACATION."</b></center></font></th></tr>";
?>
<tr>
@@ -185,14 +185,14 @@ if (!empty($displayarray['birthday'])) {
if (date('d') < substr($displayarray['birthday'], 8, 2)) $age--;
}
echo "<tr><th>Age</th><td>$age</td></tr>";
echo "<tr><th>".AGE."</th><td>$age</td></tr>";
}
// =========================
// GENDER
// =========================
if (!empty($displayarray['gender'])) {
$gender = ($displayarray['gender'] == 1) ? "Male" : "Female";
$gender = ($displayarray['gender'] == 1) ? MALE : FEMALE;
echo "<tr><th>".GENDER."</th><td>$gender</td></tr>";
}
@@ -228,9 +228,9 @@ if ($uid == $session->uid) {
// OWN PROFILE ACTION
// =========================
if ($session->sit == 0) {
echo '<td colspan="2"><a href="spieler.php?s=1">&raquo; Change profile</a></td>';
echo '<td colspan="2"><a href="spieler.php?s=1">&raquo; '.CHANGE_PROFILE.'</a></td>';
} else {
echo '<td colspan="2"><span class="none"><b>&raquo; Change profile</b></span></td>';
echo '<td colspan="2"><span class="none"><b>&raquo; '.CHANGE_PROFILE.'</b></span></td>';
}
} else {
@@ -240,11 +240,11 @@ if ($uid == $session->uid) {
// =========================
if ($isNatar || $isNature) {
echo '<td colspan="2"><span class="none"><b>&raquo; Write message not available</b></span></td>';
echo '<td colspan="2"><span class="none"><b>&raquo; '.WRITE_MESSAGE_UNAVAILABLE.'</b></span></td>';
} else {
echo '<td colspan="2"><a href="nachrichten.php?t=1&amp;id=' . (int)$uid . '">&raquo; Write message</a></td>';
echo '<td colspan="2"><a href="nachrichten.php?t=1&amp;id=' . (int)$uid . '">&raquo; '.WRITE_MESSAGE.'</a></td>';
}
}
?>
@@ -282,7 +282,7 @@ if ($uid == $session->uid) {
<tr>
<th colspan="<?php echo (defined('NEW_FUNCTIONS_OASIS') && NEW_FUNCTIONS_OASIS) ? 4 : 3; ?>">
Villages
<?php echo VILLAGES; ?>
</th>
</tr>
@@ -312,7 +312,7 @@ foreach ($varray as $vil) {
. htmlspecialchars($vil['name'], ENT_QUOTES, 'UTF-8') .
"</a>";
if ($vil['capital'] == 1) echo "<span class=\"none3\"> (Capital)</span>";
if ($vil['capital'] == 1) echo "<span class=\"none3\"> (".CAPITAL_TAG.")</span>";
if (defined('NEW_FUNCTIONS_DISPLAY_ARTIFACT') && NEW_FUNCTIONS_DISPLAY_ARTIFACT) {
if ($hasArtifact) echo "<span class=\"none3\"> (Artifact)</span>";