l10n: full interface translation (FR/RO/IT/ZH) + EN fallback hardening (#186)

This commit is contained in:
Ferywir
2026-06-09 09:28:59 +02:00
committed by GitHub
parent 695a4352e8
commit 5d366284e6
381 changed files with 7969 additions and 4761 deletions
+11 -11
View File
@@ -1,11 +1,11 @@
<h1>Send Troops</h1>
<h1><?php echo SEND_TROOPS; ?></h1>
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="1278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
<table id="troops" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="line-first column-first large"><img class="unit u11" src="img/x.gif" title="Clubswinger" onclick="document.snd.t1.value=''; return false;" alt="Clubswinger"> <input class="text" <?php if ($village->unitarray['u11']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
<td class="line-first column-first large"><img class="unit u11" src="img/x.gif" title="<?php echo U11; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U11; ?>"> <input class="text" <?php if ($village->unitarray['u11']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u11']>0){
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u11']."; return false;\">(".$village->unitarray['u11'].")</a></td>";
@@ -14,7 +14,7 @@
}
?>
<td class="line-first large"><img class="unit u14" src="img/x.gif" title="Scout" alt="Scout"> <input class="text" <?php if ($village->unitarray['u14']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
<td class="line-first large"><img class="unit u14" src="img/x.gif" title="<?php echo U14; ?>" alt="<?php echo U14; ?>"> <input class="text" <?php if ($village->unitarray['u14']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u14']>0){
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u14']."; return false;\">(".$village->unitarray['u14'].")</a></td>";
@@ -22,7 +22,7 @@
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first regular"><img class="unit u17" src="img/x.gif" title="Ram" alt="Ram"> <input class="text" <?php if ($village->unitarray['u17']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
<td class="line-first regular"><img class="unit u17" src="img/x.gif" title="<?php echo U17; ?>" alt="<?php echo U17; ?>"> <input class="text" <?php if ($village->unitarray['u17']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u17']>0){
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u17']."; return false;\">(".$village->unitarray['u17'].")</a></td>";
@@ -32,7 +32,7 @@
?>
<td class="line-first column-last small"><img class="unit u19" src="img/x.gif" title="Chief" alt="Chief"> <input class="text" <?php if ($village->unitarray['u19']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
<td class="line-first column-last small"><img class="unit u19" src="img/x.gif" title="<?php echo U19; ?>" alt="<?php echo U19; ?>"> <input class="text" <?php if ($village->unitarray['u19']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u19']>0){
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u19']."; return false;\">(".$village->unitarray['u19'].")</a></td>";
@@ -42,7 +42,7 @@
?>
</tr>
<tr>
<td class="column-first large"><img class="unit u12" src="img/x.gif" title="Spearman" alt="Spearman"> <input class="text" <?php if ($village->unitarray['u12']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
<td class="column-first large"><img class="unit u12" src="img/x.gif" title="<?php echo U12; ?>" alt="<?php echo U12; ?>"> <input class="text" <?php if ($village->unitarray['u12']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u12']>0){
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u12']."; return false;\">(".$village->unitarray['u12'].")</a></td>";
@@ -51,7 +51,7 @@
}
?>
<td class="large"><img class="unit u15" src="img/x.gif" title="Paladin" alt="Paladin"> <input class="text" <?php if ($village->unitarray['u15']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
<td class="large"><img class="unit u15" src="img/x.gif" title="<?php echo U15; ?>" alt="<?php echo U15; ?>"> <input class="text" <?php if ($village->unitarray['u15']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u15']>0){
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u15']."; return false;\">(".$village->unitarray['u15'].")</a></td>";
@@ -59,7 +59,7 @@
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="regular"><img class="unit u18" src="img/x.gif" title="Catapult" alt="Catapult"> <input class="text" <?php if ($village->unitarray['u18']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
<td class="regular"><img class="unit u18" src="img/x.gif" title="<?php echo U18; ?>" alt="<?php echo U18; ?>"> <input class="text" <?php if ($village->unitarray['u18']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u18']>0){
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u18']."; return false;\">(".$village->unitarray['u18'].")</a></td>";
@@ -67,7 +67,7 @@
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="column-last small"><img class="unit u20" src="img/x.gif" title="Settler" alt="Settler"> <input class="text" <?php if ($village->unitarray['u20']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
<td class="column-last small"><img class="unit u20" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>"> <input class="text" <?php if ($village->unitarray['u20']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u20']>0){
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u20']."; return false;\">(".$village->unitarray['u20'].")</a></td>";
@@ -77,7 +77,7 @@
?>
</tr>
<tr>
<td class="line-last column-first large"><img class="unit u13" src="img/x.gif" title="Axeman" alt="Axeman"> <input class="text" <?php if ($village->unitarray['u13']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
<td class="line-last column-first large"><img class="unit u13" src="img/x.gif" title="<?php echo U13; ?>" alt="<?php echo U13; ?>"> <input class="text" <?php if ($village->unitarray['u13']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u13']>0){
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u13']."; return false;\">(".$village->unitarray['u13'].")</a></td>";
@@ -85,7 +85,7 @@
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last large"><img class="unit u16" src="img/x.gif" title="Teutonic Knight" alt="Teutonic Knight"> <input class="text" <?php if ($village->unitarray['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
<td class="line-last large"><img class="unit u16" src="img/x.gif" title="<?php echo U16; ?>" alt="<?php echo U16; ?>"> <input class="text" <?php if ($village->unitarray['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u16']>0){
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u16']."; return false;\">(".$village->unitarray['u16'].")</a></td>";