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
+16 -16
View File
@@ -74,7 +74,7 @@ function showCheckList() {
newTD2.innerHTML = html_input_1 + 'id="users_by_name_'+num_fields+'" class="text" maxlength="50" name="users_by_name['+num_fields+']" onkeyup="checkInputs('+num_fields+',\'users\')">';
}
newTD3.innerHTML = '<img class="add" src="img/x.gif" title="add" alt="add" onclick="addRow(\''+element_id+'\')">';
newTD3.innerHTML = '<img class="add" src="img/x.gif" title="<?php echo TZ_ADD; ?>" alt="<?php echo TZ_ADD; ?>" onclick="addRow(\''+element_id+'\')">';
}
</script>
@@ -114,35 +114,35 @@ function showCheckList() {
<table cellpadding="1" cellspacing="1" id="new_forum"><thead>
<tr>
<th colspan="2">New forum</th>
<th colspan="2"><?php echo TZ_NEW_FORUM; ?></th>
</tr>
</thead><tbody>
<tr>
<th>Forum name</th>
<th><?php echo TZ_FORUM_NAME; ?></th>
<td><input class="text" type="text" name="u1" value="" maxlength="20"></td>
</tr>
<tr>
<th>Description</th>
<th><?php echo DESCRIPTION; ?></th>
<td><input class="text" type="text" name="u2" value="" maxlength="38"></td>
</tr>
<tr>
<th>Forum type</th>
<td><select class="dropdown" id="bid" name="bid" onchange="showCheckList();"><?php if($session->access == ADMIN){ ?><option value="1">Public Forum</option><?php }else{ ?><option value="2">Confederation Forum</option><option value="0" selected>Alliance Forum</option><option value="3">Closed Forum</option><?php } ?></select></td>
<th><?php echo TZ_FORUM_TYPE; ?></th>
<td><select class="dropdown" id="bid" name="bid" onchange="showCheckList();"><?php if($session->access == ADMIN){ ?><option value="1"><?php echo TZ_PUBLIC_FORUM; ?></option><?php }else{ ?><option value="2"><?php echo TZ_CONFEDERATION_FORUM; ?></option><option value="0" selected><?php echo TZ_ALLIANCE_FORUM; ?></option><option value="3"><?php echo TZ_CLOSED_FORUM; ?></option><?php } ?></select></td>
</tr>
</tbody></table>
<?php if($session->access != ADMIN){ ?>
<table cellpadding="1" cellspacing="1" id="ally_list"><thead>
<tr>
<th colspan="3">Open for more alliances</th>
<th colspan="3"><?php echo TZ_OPEN_FOR_MORE_ALLIANCES; ?></th>
</tr>
<tr>
<td>Alliance ID</td>
<td>Tag:</td>
<td>Add</td>
<td><?php echo TZ_ALLIANCE_ID; ?></td>
<td><?php echo TZ_TAG; ?></td>
<td><?php echo TZ_ADD_2; ?></td>
</tr>
</thead><tbody>
@@ -155,18 +155,18 @@ function showCheckList() {
</td>
<td class="ad">
<img class="add" src="img/x.gif" title="add" alt="add" onclick="addRow('ally_list')" />
<img class="add" src="img/x.gif" title="<?php echo TZ_ADD; ?>" alt="<?php echo TZ_ADD; ?>" onclick="addRow('ally_list')" />
</td>
</tr>
</table><table cellpadding="1" cellspacing="1" id="user_list"><thead>
<tr>
<th colspan="3">Open forum for the following players</th>
<th colspan="3"><?php echo TZ_OPEN_FORUM_FOR_THE_FOLLOWING_PLAYE; ?></th>
</tr>
<tr>
<td>User ID</td>
<td><?php echo TZ_USER_ID; ?></td>
<td>Name:</td>
<td>Add</td>
<td><?php echo TZ_NAME; ?></td>
<td><?php echo TZ_ADD_2; ?></td>
</tr>
</thead><tbody>
<tr>
@@ -178,7 +178,7 @@ function showCheckList() {
<input class="text" type="text" id="users_by_name_0" maxlength="50" name="users_by_name[0]" onkeyup="checkInputs(0,'users');" />
</td>
<td class="ad">
<img class="add" src="img/x.gif" title="add" alt="add" onclick="addRow('user_list')" />
<img class="add" src="img/x.gif" title="<?php echo TZ_ADD; ?>" alt="<?php echo TZ_ADD; ?>" onclick="addRow('user_list')" />
</td>
</tr>
</tbody></table>
+86 -87
View File
@@ -31,12 +31,12 @@ foreach($posts as $pos){
<table cellpadding="1" cellspacing="1" id="edit_post">
<thead>
<tr>
<th colspan="2">Edit answer</th>
<th colspan="2"><?php echo TZ_EDIT_ANSWER; ?></th>
</tr>
</thead>
<tbody>
<tr>
<th>Thread</th>
<th><?php echo TZ_THREAD; ?></th>
<td><?php echo $title; ?></td>
</tr>
@@ -48,47 +48,47 @@ foreach($posts as $pos){
<div bbArea="text" id="text_container" name="text_container">
<div id="text_toolbar" name="text_toolbar">
<a href="javascript:void(0);" bbType="d" bbTag="b">
<div title="bold" alt="bold" class="bbButton bbBold"></div>
<div title="<?php echo TZ_BOLD; ?>" alt="<?php echo TZ_BOLD; ?>" class="bbButton bbBold"></div>
</a> <a href="javascript:void(0);" bbType="d" bbTag="i">
<div title="italic" alt="italic" class="bbButton bbItalic"></div>
<div title="<?php echo TZ_ITALIC; ?>" alt="<?php echo TZ_ITALIC; ?>" class="bbButton bbItalic"></div>
</a> <a href="javascript:void(0);" bbType="d" bbTag="u">
<div title="underlined" alt="underlined"
<div title="<?php echo TZ_UNDERLINED; ?>" alt="<?php echo TZ_UNDERLINED; ?>"
class="bbButton bbUnderscore"></div>
</a> <a href="javascript:void(0);" bbType="d" bbTag="alliance">
<div title="Alliance" alt="Alliance" class="bbButton bbAlliance"></div>
<div title="<?php echo ALLIANCE; ?>" alt="<?php echo ALLIANCE; ?>" class="bbButton bbAlliance"></div>
</a> <a href="javascript:void(0);" bbType="d" bbTag="player">
<div title="Player" alt="Player" class="bbButton bbPlayer"></div>
<div title="<?php echo PLAYER; ?>" alt="<?php echo PLAYER; ?>" class="bbButton bbPlayer"></div>
</a> <a href="javascript:void(0);" bbType="d" bbTag="coor">
<div title="Coordinates" alt="Coordinates"
<div title="<?php echo COORDINATES; ?>" alt="<?php echo COORDINATES; ?>"
class="bbButton bbCoordinate"></div>
</a> <a href="javascript:void(0);" bbType="d" bbTag="report">
<div title="Report" alt="Report" class="bbButton bbReport"></div>
<div title="<?php echo REPORT; ?>" alt="<?php echo REPORT; ?>" class="bbButton bbReport"></div>
</a> <a href="javascript:void(0);" bbWin="resources"
id="text_resourceButton">
<div title="Resources" alt="Resources"
<div title="<?php echo RESOURCES; ?>" alt="<?php echo RESOURCES; ?>"
class="bbButton bbResource"></div>
</a> <a href="javascript:void(0);" bbWin="smilies"
id="text_smilieButton">
<div title="Smilies" alt="Smilies" class="bbButton bbSmilie"></div>
<div title="<?php echo TZ_SMILIES; ?>" alt="<?php echo TZ_SMILIES; ?>" class="bbButton bbSmilie"></div>
</a> <a href="javascript:void(0);" bbWin="troops"
id="text_troopButton">
<div title="Troops" alt="Troops" class="bbButton bbTroop"></div>
<div title="<?php echo TROOPS; ?>" alt="<?php echo TROOPS; ?>" class="bbButton bbTroop"></div>
</a> <a href="javascript:void(0);" id="text_previewButton"
bbArea="text">
<div title="Preview" alt="Preview" class="bbButton bbPreview"></div>
<div title="<?php echo TZ_PREVIEW; ?>" alt="<?php echo TZ_PREVIEW; ?>" class="bbButton bbPreview"></div>
</a>
<div class="clear"></div>
<div id="text_toolbarWindows">
<div id="text_resources" name="text_resources">
<a href="javascript:void(0);" bbType="o" bbTag="lumber"><img
src="img/x.gif" class="r1" title="Wood" alt="Wood" /></a> <a
src="img/x.gif" class="r1" title="<?php echo TZ_WOOD; ?>" alt="<?php echo TZ_WOOD; ?>" /></a> <a
href="javascript:void(0);" bbType="o" bbTag="clay"><img
src="img/x.gif" class="r2" title="Clay" alt="Clay" /></a> <a
src="img/x.gif" class="r2" title="<?php echo CLAY; ?>" alt="<?php echo CLAY; ?>" /></a> <a
href="javascript:void(0);" bbType="o" bbTag="iron"><img
src="img/x.gif" class="r3" title="Iron" alt="Iron" /></a> <a
src="img/x.gif" class="r3" title="<?php echo IRON; ?>" alt="<?php echo IRON; ?>" /></a> <a
href="javascript:void(0);" bbType="o" bbTag="crop"><img
src="img/x.gif" class="r4" title="Crop" alt="Crop" /></a>
src="img/x.gif" class="r4" title="<?php echo CROP; ?>" alt="<?php echo CROP; ?>" /></a>
</div>
<div id="text_smilies" name="text_smilies">
<a href="javascript:void(0);" bbType="s" bbTag="*aha*"><img
@@ -166,123 +166,123 @@ foreach($posts as $pos){
</div>
<div id="text_troops" name="text_troops">
<a href="javascript:void(0);" bbType="o" bbTag="tid1"><img
class="unit u1" src="img/x.gif" title="Legionnaire"
alt="Legionnaire" /></a><a href="javascript:void(0);"
class="unit u1" src="img/x.gif" title="<?php echo U1; ?>"
alt="<?php echo U1; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid2"><img class="unit u2" src="img/x.gif"
title="Praetorian" alt="Praetorian" /></a><a
title="<?php echo U2; ?>" alt="<?php echo U2; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid3"><img
class="unit u3" src="img/x.gif" title="Imperian"
alt="Imperian" /></a><a href="javascript:void(0);" bbType="o"
class="unit u3" src="img/x.gif" title="<?php echo U3; ?>"
alt="<?php echo U3; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid4"><img class="unit u4" src="img/x.gif"
title="Equites Legati" alt="Equites Legati" /></a><a
title="<?php echo U4; ?>" alt="<?php echo U4; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid5"><img
class="unit u5" src="img/x.gif" title="Equites Imperatoris"
alt="Equites Imperatoris" /></a><a href="javascript:void(0);"
class="unit u5" src="img/x.gif" title="<?php echo U5; ?>"
alt="<?php echo U5; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid6"><img class="unit u6" src="img/x.gif"
title="Equites Caesaris" alt="Equites Caesaris" /></a><a
title="<?php echo U6; ?>" alt="<?php echo U6; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid7"><img
class="unit u7" src="img/x.gif" title="Ram" alt="Ram" /></a><a
class="unit u7" src="img/x.gif" title="<?php echo U17; ?>" alt="<?php echo U17; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid8"><img
class="unit u8" src="img/x.gif" title="Fire Catapult"
alt="Fire Catapult" /></a><a href="javascript:void(0);"
class="unit u8" src="img/x.gif" title="<?php echo U8; ?>"
alt="<?php echo U8; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid9"><img class="unit u9" src="img/x.gif"
title="Senator" alt="Senator" /></a><a
title="<?php echo U9; ?>" alt="<?php echo U9; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid10"><img
class="unit u10" src="img/x.gif" title="Settler" alt="Settler" /></a><a
class="unit u10" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid11"><img
class="unit u11" src="img/x.gif" title="Maceman" alt="Maceman" /></a><a
class="unit u11" src="img/x.gif" title="<?php echo TZ_MACEMAN; ?>" alt="<?php echo TZ_MACEMAN; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid12"><img
class="unit u12" src="img/x.gif" title="Spearman"
alt="Spearman" /></a><a href="javascript:void(0);" bbType="o"
class="unit u12" src="img/x.gif" title="<?php echo U12; ?>"
alt="<?php echo U12; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid13"><img class="unit u13" src="img/x.gif"
title="Axeman" alt="Axeman" /></a><a
title="<?php echo U13; ?>" alt="<?php echo U13; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid14"><img
class="unit u14" src="img/x.gif" title="Scout" alt="Scout" /></a><a
class="unit u14" src="img/x.gif" title="<?php echo U14; ?>" alt="<?php echo U14; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid15"><img
class="unit u15" src="img/x.gif" title="Paladin" alt="Paladin" /></a><a
class="unit u15" src="img/x.gif" title="<?php echo U15; ?>" alt="<?php echo U15; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid16"><img
class="unit u16" src="img/x.gif" title="Teutonic Knight"
alt="Teutonic Knight" /></a><a href="javascript:void(0);"
class="unit u16" src="img/x.gif" title="<?php echo U16; ?>"
alt="<?php echo U16; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid17"><img class="unit u17" src="img/x.gif"
title="Ram" alt="Ram" /></a><a href="javascript:void(0);"
title="<?php echo U17; ?>" alt="<?php echo U17; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid18"><img class="unit u18" src="img/x.gif"
title="Catapult" alt="Catapult" /></a><a
title="<?php echo U18; ?>" alt="<?php echo U18; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid19"><img
class="unit u19" src="img/x.gif" title="Chieftain"
alt="Chieftain" /></a><a href="javascript:void(0);" bbType="o"
class="unit u19" src="img/x.gif" title="<?php echo U29; ?>"
alt="<?php echo U29; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid20"><img class="unit u20" src="img/x.gif"
title="Settler" alt="Settler" /></a><a
title="<?php echo U10; ?>" alt="<?php echo U10; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid21"><img
class="unit u21" src="img/x.gif" title="Phalanx" alt="Phalanx" /></a><a
class="unit u21" src="img/x.gif" title="<?php echo U21; ?>" alt="<?php echo U21; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid22"><img
class="unit u22" src="img/x.gif" title="Swordsman"
alt="Swordsman" /></a><a href="javascript:void(0);" bbType="o"
class="unit u22" src="img/x.gif" title="<?php echo U22; ?>"
alt="<?php echo U22; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid23"><img class="unit u23" src="img/x.gif"
title="Pathfinder" alt="Pathfinder" /></a><a
title="<?php echo U23; ?>" alt="<?php echo U23; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid24"><img
class="unit u24" src="img/x.gif" title="Theutates Thunder"
alt="Theutates Thunder" /></a><a href="javascript:void(0);"
class="unit u24" src="img/x.gif" title="<?php echo U24; ?>"
alt="<?php echo U24; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid25"><img class="unit u25" src="img/x.gif"
title="Druidrider" alt="Druidrider" /></a><a
title="<?php echo U25; ?>" alt="<?php echo U25; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid26"><img
class="unit u26" src="img/x.gif" title="Haeduan" alt="Haeduan" /></a><a
class="unit u26" src="img/x.gif" title="<?php echo U26; ?>" alt="<?php echo U26; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid27"><img
class="unit u27" src="img/x.gif" title="Battering Ram"
alt="Battering Ram" /></a><a href="javascript:void(0);"
class="unit u27" src="img/x.gif" title="<?php echo U7; ?>"
alt="<?php echo U7; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid28"><img class="unit u28" src="img/x.gif"
title="Trebuchet" alt="Trebuchet" /></a><a
title="<?php echo U28; ?>" alt="<?php echo U28; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid29"><img
class="unit u29" src="img/x.gif" title="Chief" alt="Chief" /></a><a
class="unit u29" src="img/x.gif" title="<?php echo U19; ?>" alt="<?php echo U19; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid30"><img
class="unit u30" src="img/x.gif" title="Settler" alt="Settler" /></a><a
class="unit u30" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid31"><img
class="unit u31" src="img/x.gif" title="Rat" alt="Rat" /></a><a
class="unit u31" src="img/x.gif" title="<?php echo U31; ?>" alt="<?php echo U31; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid32"><img
class="unit u32" src="img/x.gif" title="Spider" alt="Spider" /></a><a
class="unit u32" src="img/x.gif" title="<?php echo U32; ?>" alt="<?php echo U32; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid33"><img
class="unit u33" src="img/x.gif" title="Snake" alt="Snake" /></a><a
class="unit u33" src="img/x.gif" title="<?php echo U33; ?>" alt="<?php echo U33; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid34"><img
class="unit u34" src="img/x.gif" title="Bat" alt="Bat" /></a><a
class="unit u34" src="img/x.gif" title="<?php echo U34; ?>" alt="<?php echo U34; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid35"><img
class="unit u35" src="img/x.gif" title="Wild Boar"
alt="Wild Boar" /></a><a href="javascript:void(0);" bbType="o"
class="unit u35" src="img/x.gif" title="<?php echo U35; ?>"
alt="<?php echo U35; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid36"><img class="unit u36" src="img/x.gif"
title="Wolf" alt="Wolf" /></a><a href="javascript:void(0);"
title="<?php echo U36; ?>" alt="<?php echo U36; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid37"><img class="unit u37" src="img/x.gif"
title="Bear" alt="Bear" /></a><a href="javascript:void(0);"
title="<?php echo U37; ?>" alt="<?php echo U37; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid38"><img class="unit u38" src="img/x.gif"
title="Crocodile" alt="Crocodile" /></a><a
title="<?php echo U38; ?>" alt="<?php echo U38; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid39"><img
class="unit u39" src="img/x.gif" title="Tiger" alt="Tiger" /></a><a
class="unit u39" src="img/x.gif" title="<?php echo U39; ?>" alt="<?php echo U39; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid40"><img
class="unit u40" src="img/x.gif" title="Elephant"
alt="Elephant" /></a><a href="javascript:void(0);" bbType="o"
class="unit u40" src="img/x.gif" title="<?php echo U40; ?>"
alt="<?php echo U40; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid41"><img class="unit u41" src="img/x.gif"
title="Pikeman" alt="Pikeman" /></a><a
title="<?php echo U41; ?>" alt="<?php echo U41; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid42"><img
class="unit u42" src="img/x.gif" title="Thorned Warrior"
alt="Thorned Warrior" /></a><a href="javascript:void(0);"
class="unit u42" src="img/x.gif" title="<?php echo U42; ?>"
alt="<?php echo U42; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid43"><img class="unit u43" src="img/x.gif"
title="Guardsman" alt="Guardsman" /></a><a
title="<?php echo U43; ?>" alt="<?php echo U43; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid44"><img
class="unit u44" src="img/x.gif" title="Birds of Prey"
alt="Birds of Prey" /></a><a href="javascript:void(0);"
class="unit u44" src="img/x.gif" title="<?php echo U44; ?>"
alt="<?php echo U44; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid45"><img class="unit u45" src="img/x.gif"
title="Axerider" alt="Axerider" /></a><a
title="<?php echo U45; ?>" alt="<?php echo U45; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid46"><img
class="unit u46" src="img/x.gif" title="Natarian Knight"
alt="Natarian Knight" /></a><a href="javascript:void(0);"
class="unit u46" src="img/x.gif" title="<?php echo U46; ?>"
alt="<?php echo U46; ?>" /></a><a href="javascript:void(0);"
bbType="o" bbTag="tid47"><img class="unit u47" src="img/x.gif"
title="War Elephant" alt="War Elephant" /></a><a
title="<?php echo U47; ?>" alt="<?php echo U47; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid48"><img
class="unit u48" src="img/x.gif" title="Ballista"
alt="Ballista" /></a><a href="javascript:void(0);" bbType="o"
class="unit u48" src="img/x.gif" title="<?php echo U48; ?>"
alt="<?php echo U48; ?>" /></a><a href="javascript:void(0);" bbType="o"
bbTag="tid49"><img class="unit u49" src="img/x.gif"
title="Natarian Emperor" alt="Natarian Emperor" /></a><a
title="<?php echo U49; ?>" alt="<?php echo U49; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="tid50"><img
class="unit u50" src="img/x.gif" title="Settler" alt="Settler" /></a><a
class="unit u50" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>" /></a><a
href="javascript:void(0);" bbType="o" bbTag="hero"><img
class="unit uhero" src="img/x.gif" title="Hero" alt="Hero" /></a>
class="unit uhero" src="img/x.gif" title="<?php echo U0; ?>" alt="<?php echo U0; ?>" /></a>
</div>
</div>
</div>
@@ -305,6 +305,5 @@ foreach($posts as $pos){
</form>
</p>
<span style="color: #DD0000"><b>Warning:</b> you can't use the values <b>[message]</b>
or <b>[/message]</b> in your post because it can cause problem with
bbcode system.</span>
<span style="color: #DD0000"><b><?php echo TZ_WARNING; ?></b> <?php echo TZ_YOU_CAN_T_USE_THE_VALUES; ?> <b>[message]</b>
or <b>[/message]</b> <?php echo TZ_IN_YOUR_POST_BECAUSE_IT_CAN_CAUSE; ?></span>
+6 -6
View File
@@ -32,7 +32,7 @@ foreach($countArray as $index => $count){
<tr>
<td></td>
<td>Forum name</td>
<td><?php echo TZ_FORUM_NAME; ?></td>
<td>&nbsp;Threads&nbsp;</td>
<td>&nbsp;Last post&nbsp;</td>
</tr>
@@ -71,10 +71,10 @@ foreach($forumcat as $arr){
echo '<tr><td class="ico">';
if(Alliance::canAct($checkArray)){
echo '<a class="up_arr" href="allianz.php?s=2&fid='.$arr['id'].'&res=1&admin=pos" title="To top">
<img src="img/x.gif" alt="To top" /></a><a class="edit" href="allianz.php?s=2&idf='.$arr['id'].'&admin=editforum" title="edit">
<img src="img/x.gif" alt="edit" /></a><br /><a class="down_arr" href="allianz.php?s=2&fid='.$arr['id'].'&res=0&admin=pos" title="To bottom">
<img src="img/x.gif" alt="To bottom" /></a><a class="fdel" href="allianz.php?s=2&idf='.$arr['id'].'&admin=delforum" onClick="return confirm(\'confirm delete?\');" title="delete">
<img src="img/x.gif" alt="delete" /></a>';
<img src="img/x.gif" alt="To top" /></a><a class="edit" href="allianz.php?s=2&idf='.$arr['id'].'&admin=editforum" title="'.EDIT.'">
<img src="img/x.gif" alt="'.EDIT.'" /></a><br /><a class="down_arr" href="allianz.php?s=2&fid='.$arr['id'].'&res=0&admin=pos" title="To bottom">
<img src="img/x.gif" alt="To bottom" /></a><a class="fdel" href="allianz.php?s=2&idf='.$arr['id'].'&admin=delforum" onClick="return confirm(\'confirm delete?\');" title="'.DELETE.'">
<img src="img/x.gif" alt="'.DELETE.'" /></a>';
}
else echo '<img class="folder" src="img/x.gif" title="Thread without new posts" alt="Thread without new posts">';
@@ -95,7 +95,7 @@ foreach($forumcat as $arr){
<p>
<?php
if(isset($opt['opt5']) && $opt['opt5'] == 1 || $session->access == ADMIN){
echo '<a href="allianz.php?s=2&admin=newforum"><img id="fbtn_newforum" class="dynamic_img" src="img/x.gif" alt="New forum" /></a>';
echo '<a href="allianz.php?s=2&admin=newforum"><img id="fbtn_newforum" class="dynamic_img" src="img/x.gif" alt="'.TZ_NEW_FORUM.'" /></a>';
echo '<a href="allianz.php?s='.$ids.((isset($_GET['admin']) && !empty($_GET['admin']) && $_GET['admin'] == "switch_admin") ? "" : "&admin=switch_admin").'" title="Toggle Admin mode"><img class="switch_admin dynamic_img" src="img/x.gif" alt="Toggle Admin mode" /></a>';
}
?>
+3 -3
View File
@@ -21,16 +21,16 @@ $canBeMoved = $forumData['forum_area'] == 1 && $session->access == 9;
<input type="hidden" name="edittopic" value="1">
<table cellpadding="1" cellspacing="1" id="edit_topic"><thead>
<tr>
<td colspan="2">Edit topic</td>
<td colspan="2"><?php echo TZ_EDIT_TOPIC; ?></td>
</tr>
</thead><tbody>
<tr>
<th>Thread</th>
<th><?php echo TZ_THREAD; ?></th>
<td><input class="text" type="Text" name="thema" value="<?php echo $title; ?>" maxlength="35"></td>
</tr>
<?php if($canBeMoved){?>
<tr>
<td>Move topic</td>
<td><?php echo TZ_MOVE_TOPIC; ?></td>
<td><select class="dropdown" name="fid">
<?php
$show_cat = $database->ForumCat($forumData['alliance']);
+6 -6
View File
@@ -19,15 +19,15 @@ $opt = $database->getAlliPermissions($session->uid, $aid);
$ChckTopic = $database->CheckCatTopic($cat_id);
$Topics = array_merge($database->ForumCatTopicStick($cat_id), $database->ForumCatTopic($cat_id));
?>
<h4><a href="allianz.php?s=2">Alliance</a> -> <a href="allianz.php?s=2&fid=<?php echo $cat_id; ?>"><?php echo $CatName; ?></a></h4><table cellpadding="1" cellspacing="1" id="topics"><thead>
<h4><a href="allianz.php?s=2"><?php echo ALLIANCE; ?></a> -> <a href="allianz.php?s=2&fid=<?php echo $cat_id; ?>"><?php echo $CatName; ?></a></h4><table cellpadding="1" cellspacing="1" id="topics"><thead>
<tr>
<th colspan="4"><?php echo $CatName; ?></th>
</tr>
<tr>
<td></td>
<td>Threads</td>
<td>Replies</td>
<td>Last post</td>
<td><?php echo TZ_THREADS; ?></td>
<td><?php echo TZ_REPLIES; ?></td>
<td><?php echo TZ_LAST_POST; ?></td>
</tr></thead><tbody>
<?php
if($ChckTopic){
@@ -60,7 +60,7 @@ if($ChckTopic){
}else{
$pin = '<a class="pin" href="?s=2&fid='.$_GET['fid'].'&idt='.$arrs['id'].'&admin=pin" title="Stick topic"><img src="img/x.gif" alt="Stick topic" /></a>';
}
echo $locks.'<a class="edit" href="?s=2&fid='.$_GET['fid'].'&idt='.$arrs['id'].'&admin=edittopic" title="edit"><img src="img/x.gif" alt="edit" /></a><br />'.$pin.'<a class="fdel" href="?s=2&fid='.$_GET['fid'].'&idt='.$arrs['id'].'&admin=deltopic" title="delete"><img src="img/x.gif" alt="delete" onClick="return confirm(\'confirm delete?\');" /></a>';
echo $locks.'<a class="edit" href="?s=2&fid='.$_GET['fid'].'&idt='.$arrs['id'].'&admin=edittopic" title="'.EDIT.'"><img src="img/x.gif" alt="'.EDIT.'" /></a><br />'.$pin.'<a class="fdel" href="?s=2&fid='.$_GET['fid'].'&idt='.$arrs['id'].'&admin=deltopic" title="'.DELETE.'"><img src="img/x.gif" alt="'.DELETE.'" onClick="return confirm(\'confirm delete?\');" /></a>';
}elseif($arrs['close'] == 1){
echo '<img class="folder_'.($arrs['stick'] == 1 ? 'sticky_' : '').'lock" src="img/x.gif" alt="Closed Thread without new posts" title="Closed Thread without new posts" />';
}else{
@@ -83,7 +83,7 @@ echo '<tr>
<?php
if($forumData['forum_area'] != 3 || ($forumData['forum_area'] == 3 && $opt['opt5'] == 1)){
?>
<a href="allianz.php?s=2&pid=<?php echo $aid; ?>&fid=<?php echo $cat_id; ?>&ac=newtopic"><img id="fbtn_post" class="dynamic_img" src="img/x.gif" alt="Post new thread" /></a>
<a href="allianz.php?s=2&pid=<?php echo $aid; ?>&fid=<?php echo $cat_id; ?>&ac=newtopic"><img id="fbtn_post" class="dynamic_img" src="img/x.gif" alt="<?php echo TZ_POST_NEW_THREAD; ?>" /></a>
<?php
echo '<a href="allianz.php?s=2&fid='.$cat_id.((isset($_GET['admin']) && !empty($_GET['admin']) && $_GET['admin'] == "switch_admin") ? "" : "&admin=switch_admin").'" title="Toggle Admin mode"><img class="switch_admin dynamic_img" src="img/x.gif" alt="Toggle Admin mode" /></a>';
}
File diff suppressed because one or more lines are too long
+7 -7
View File
@@ -37,7 +37,7 @@ include ("GameEngine/BBCode.php");
$bbcode_topic = stripslashes(nl2br($bbcoded));
?>
<h4>
<a href="allianz.php?s=2">Alliance</a> -> <a
<a href="allianz.php?s=2"><?php echo ALLIANCE; ?></a> -> <a
href="allianz.php?s=2&fid=<?php echo $arr['cat']; ?>"><?php echo $CatName; ?></a>
</h4>
<table cellpadding="1" cellspacing="1" id="posts">
@@ -47,8 +47,8 @@ $bbcode_topic = stripslashes(nl2br($bbcoded));
</tr>
<tr>
<td>Author</td>
<td>Message</td>
<td><?php echo TZ_AUTHOR; ?></td>
<td><?php echo TZ_MESSAGE_3; ?></td>
</tr>
</thead>
<tbody>
@@ -67,7 +67,7 @@ $checkArray = ['aid' => $aid, 'alliance' => $arr['alliance'], 'forum_perm' => $o
'owner' => $arr['owner'], 'admin' => $_GET['admin'], 'forum_owner' => $forumData['owner']];
if(Alliance::canAct($checkArray)){
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&idt='.$arr['id'].'&admin=editans"><img src="img/x.gif" title="edit" alt="edit" /></a><a class="fdel" href="?s=2&fid='.$arr['cat'].'&idt='.$arr['id'].'&admin=deltopic" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="delete" alt="delete" /></a></div><br />';
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&idt='.$arr['id'].'&admin=editans"><img src="img/x.gif" title="'.EDIT.'" alt="'.EDIT.'" /></a><a class="fdel" href="?s=2&fid='.$arr['cat'].'&idt='.$arr['id'].'&admin=deltopic" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="'.DELETE.'" alt="'.DELETE.'" /></a></div><br />';
}
?>
<div class="clear dotted"></div>
@@ -109,7 +109,7 @@ if($database->checkSurvey($arr['id'])){
name="tid" value="<?php echo $_GET['tid']; ?>" />
<p class="btn">
<input type="image" id="fbtn_vote" value="ok" name="s1"
class="dynamic_img" src="img/x.gif" alt="Vote" />
class="dynamic_img" src="img/x.gif" alt="<?php echo TZ_VOTE; ?>" />
</form>
</p>
@@ -168,7 +168,7 @@ foreach($posts as $po){
</td>
<td class="pcontent"><div class="posted">created: '.$date.'</div>';
if(Alliance::canAct($checkArray)){
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&fid='.$topic['cat'].'&tid='.$_GET['tid'].'&pod='.$po['id'].'&admin=editpost"><img src="img/x.gif" title="edit" alt="edit" /></a><a class="fdel" href="?s=2&pod='.$po['id'].'&tid='.$_GET['tid'].'&fid2='.$topic['cat'].'&admin=delpost" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="delete" alt="delete" /></a></div><br />';
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&fid='.$topic['cat'].'&tid='.$_GET['tid'].'&pod='.$po['id'].'&admin=editpost"><img src="img/x.gif" title="'.EDIT.'" alt="'.EDIT.'" /></a><a class="fdel" href="?s=2&pod='.$po['id'].'&tid='.$_GET['tid'].'&fid2='.$topic['cat'].'&admin=delpost" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="'.DELETE.'" alt="'.DELETE.'" /></a></div><br />';
}
echo '<div class="clear dotted"></div><div class="text">'.$bbcode_post.'</div></td>
</tr>';
@@ -179,7 +179,7 @@ foreach($posts as $po){
<div style="margin-top: 15px;">
<?php
if(!$arr['close'] && ($forumData['forum_area'] != 3 || ($forumData['forum_area'] == 3 && $opt['opt5'] == 1))){
echo '<a href="allianz.php?s=2&tid='.$arr['id'].'&ac=newpost"><img id="fbtn_reply" class="dynamic_img"src="img/x.gif" alt="Replies" /></a>';
echo '<a href="allianz.php?s=2&tid='.$arr['id'].'&ac=newpost"><img id="fbtn_reply" class="dynamic_img"src="img/x.gif" alt="'.TZ_REPLIES.'" /></a>';
echo '<a href="allianz.php?s=2&tid='.$arr['id'].((isset($_GET['admin']) && !empty($_GET['admin']) && $_GET['admin'] == "switch_admin") ? "" : "&admin=switch_admin").'" title="Toggle Admin mode"><img class="switch_admin dynamic_img" src="img/x.gif" alt="Toggle Admin mode" /></a>';
}
?>
File diff suppressed because one or more lines are too long
+14 -14
View File
@@ -62,7 +62,7 @@ if(!empty($forumData['display_to_users'])) $users = explode(',', $forumData['dis
newTD2.innerHTML = html_input_1 + 'id="users_by_name_'+num_fields+'" class="text" maxlength="15" name="users_by_name['+num_fields+']" onkeyup="checkInputs('+num_fields+',\'users\')">';
}
newTD3.innerHTML = '<img class="add" src="img/x.gif" title="add" alt="add" onclick="addRow(\''+element_id+'\')">';
newTD3.innerHTML = '<img class="add" src="img/x.gif" title="<?php echo TZ_ADD; ?>" alt="<?php echo TZ_ADD; ?>" onclick="addRow(\''+element_id+'\')">';
}
</script>
@@ -101,17 +101,17 @@ if(!empty($forumData['display_to_users'])) $users = explode(',', $forumData['dis
<table cellpadding="1" cellspacing="1" id="edit_forum"><thead>
<tr>
<th colspan="2">edit forum</th>
<th colspan="2"><?php echo TZ_EDIT_FORUM; ?></th>
</tr>
</thead><tbody>
<tr>
<th>Forum name</th>
<th><?php echo TZ_FORUM_NAME; ?></th>
<td><input class="text" type="text" name="u1" value="<?php echo $cat_name; ?>" maxlength="30"></td>
</tr>
<tr>
<th>Description</th>
<th><?php echo DESCRIPTION; ?></th>
<td><input class="text" type="text" name="u2" value="<?php echo $cat_des; ?>" maxlength="38"></td>
</tr>
</table>
@@ -119,12 +119,12 @@ if(!empty($forumData['display_to_users'])) $users = explode(',', $forumData['dis
<table cellpadding="1" cellspacing="1" id="ally_list"><thead>
<tr>
<th colspan="3">Open for more alliances</th>
<th colspan="3"><?php echo TZ_OPEN_FOR_MORE_ALLIANCES; ?></th>
</tr>
<tr>
<td>Alliance ID</td>
<td>Tag:</td>
<td>Add</td>
<td><?php echo TZ_ALLIANCE_ID; ?></td>
<td><?php echo TZ_TAG; ?></td>
<td><?php echo TZ_ADD_2; ?></td>
</tr>
</thead><tbody>
@@ -147,17 +147,17 @@ if(!empty($forumData['display_to_users'])) $users = explode(',', $forumData['dis
<input class="text" type="text" id="allys_by_name_<?php echo $i; ?>" name="allys_by_name[<?php echo $i; ?>]" maxlength="15" onkeyup="checkInputs(<?php echo $i; ?>,'allys');" />
</td>
<td class="ad">
<img class="add" src="img/x.gif" title="add" alt="add" onclick="addRow('ally_list')" />
<img class="add" src="img/x.gif" title="<?php echo TZ_ADD; ?>" alt="<?php echo TZ_ADD; ?>" onclick="addRow('ally_list')" />
</td>
</tr>
</table><table cellpadding="1" cellspacing="1" id="user_list"><thead>
<tr>
<th colspan="3">Open forum for the following players</th>
<th colspan="3"><?php echo TZ_OPEN_FORUM_FOR_THE_FOLLOWING_PLAYE; ?></th>
</tr>
<tr>
<td>User ID</td>
<td>Name:</td>
<td>Add</td>
<td><?php echo TZ_USER_ID; ?></td>
<td><?php echo TZ_NAME; ?></td>
<td><?php echo TZ_ADD_2; ?></td>
</tr>
</thead><tbody>
<?php for($i = 0; $i < count($users); $i++){?>
@@ -181,7 +181,7 @@ if(!empty($forumData['display_to_users'])) $users = explode(',', $forumData['dis
<input class="text" type="text" id="users_by_name_<?php echo $i; ?>" maxlength="50" name="users_by_name[<?php echo $i; ?>]" onkeyup="checkInputs(<?php echo $i; ?>,'users');" />
</td>
<td class="ad">
<img class="add" src="img/x.gif" title="add" alt="add" onclick="addRow('user_list')" />
<img class="add" src="img/x.gif" title="<?php echo TZ_ADD; ?>" alt="<?php echo TZ_ADD; ?>" onclick="addRow('user_list')" />
</td>
</tr>
</tbody></table>
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -43,7 +43,7 @@ if ($session->alliance == $aid && $session->alliance > 0) {
| <!-- Attacks -->
<a href="allianz.php?s=3" <?php if ($s === 3) { echo 'class="selected"'; } ?>>
Attacks
<?php echo TZ_ATTACKS; ?>
</a>
| <!-- News -->
@@ -63,7 +63,7 @@ if ($session->alliance == $aid && $session->alliance > 0) {
} else {
?>
| <!-- Options disabled for sitter -->
<span class="none"><b>Options</b></span>
<span class="none"><b><?php echo OPTION; ?></b></span>
<?php
}
?>
+11 -11
View File
@@ -19,7 +19,7 @@ if (!isset($_SESSION['search']) || !is_numeric($_SESSION['search'])) {
<center>
<font color="orange" size="2">
<p class="error">
The alliance <b>"<?php echo htmlspecialchars($_SESSION['search'] ?? '', ENT_QUOTES, 'UTF-8'); ?>"</b> does not exist.
<?php echo TZ_THE_ALLIANCE; ?> <b>"<?php echo htmlspecialchars($_SESSION['search'] ?? '', ENT_QUOTES, 'UTF-8'); ?>"</b> <?php echo TZ_DOES_NOT_EXIST; ?>
</p>
</font>
</center>
@@ -64,26 +64,26 @@ if (isset($_GET['rank']) && is_numeric($_GET['rank'])) {
<thead>
<tr>
<th colspan="5">
The largest alliances
<?php echo TZ_THE_LARGEST_ALLIANCES; ?>
<div id="submenu">
<a title="Top 10" href="statistiken.php?id=43">
<img class="btn_top10" src="img/x.gif" alt="Top 10">
<a title="<?php echo TZ_TOP_10; ?>" href="statistiken.php?id=43">
<img class="btn_top10" src="img/x.gif" alt="<?php echo TZ_TOP_10; ?>">
</a>
<a title="defender" href="statistiken.php?id=42">
<img class="btn_def" src="img/x.gif" alt="defender">
<a title="<?php echo DEFENDER; ?>" href="statistiken.php?id=42">
<img class="btn_def" src="img/x.gif" alt="<?php echo DEFENDER; ?>">
</a>
<a title="attacker" href="statistiken.php?id=41">
<img class="btn_off" src="img/x.gif" alt="attacker">
<a title="<?php echo ATTACKER; ?>" href="statistiken.php?id=41">
<img class="btn_off" src="img/x.gif" alt="<?php echo ATTACKER; ?>">
</a>
</div>
</th>
</tr>
<tr>
<td></td>
<td>Alliance</td>
<td>Player</td>
<td><?php echo ALLIANCE; ?></td>
<td><?php echo PLAYER; ?></td>
<td>&Oslash;</td>
<td>Points</td>
<td><?php echo POINTS; ?></td>
</tr>
</thead>
+14 -14
View File
@@ -62,11 +62,11 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="3">Alliance</th>
<th colspan="3"><?php echo ALLIANCE; ?></th>
</tr>
<tr>
<td colspan="2">Details</td>
<td>Description</td>
<td colspan="2"><?php echo DETAIL; ?></td>
<td><?php echo DESCRIPTION; ?></td>
</tr>
</thead>
@@ -79,7 +79,7 @@ include("alli_menu.tpl");
<!-- TAG + DESCRIPTION -->
<tr>
<th>Tag</th>
<th><?php echo TAG; ?></th>
<td class="s7">
<?php echo htmlspecialchars($allianceinfo['tag'], ENT_QUOTES, 'UTF-8'); ?>
</td>
@@ -94,7 +94,7 @@ include("alli_menu.tpl");
</tr>
<tr>
<th>Name</th>
<th><?php echo NAME; ?></th>
<td><?php echo htmlspecialchars($allianceinfo['name'], ENT_QUOTES, 'UTF-8'); ?></td>
</tr>
@@ -102,17 +102,17 @@ include("alli_menu.tpl");
<!-- RANK -->
<tr>
<th>Rank</th>
<th><?php echo RANK; ?></th>
<td><?php echo (int)$ranking->getAllianceRank($aid); ?>.</td>
</tr>
<tr>
<th>Points</th>
<th><?php echo POINTS; ?></th>
<td><?php echo (int)$totalpop; ?></td>
</tr>
<tr>
<th>Members</th>
<th><?php echo TZ_MEMBERS; ?></th>
<td><?php echo count($memberlist); ?></td>
</tr>
@@ -135,13 +135,13 @@ include("alli_menu.tpl");
<!-- MEDALS -->
<p>
<table cellspacing="1" cellpadding="2" class="tbg">
<tr><td class="rbg" colspan="4">Medals</td></tr>
<tr><td class="rbg" colspan="4"><?php echo MEDALS; ?></td></tr>
<tr>
<td>Category</td>
<td>Rank</td>
<td>Week</td>
<td>BB-Code</td>
<td><?php echo CATEGORY; ?></td>
<td><?php echo RANK; ?></td>
<td><?php echo WEEK; ?></td>
<td><?php echo BB_CODE; ?></td>
</tr>
<?php
@@ -199,7 +199,7 @@ if (!empty($varmedal)) {
<!-- SAVE BUTTON -->
<p class="btn">
<input tabindex="3" type="image" name="s1" id="btn_save"
class="dynamic_img" src="img/x.gif" alt="save">
class="dynamic_img" src="img/x.gif" alt="<?php echo SAVE; ?>">
</p>
</form>
+2 -2
View File
@@ -37,7 +37,7 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Assign to position</th>
<th colspan="2"><?php echo TZ_ASSIGN_TO_POSITION; ?></th>
</tr>
</thead>
@@ -51,7 +51,7 @@ include("alli_menu.tpl");
<!-- MEMBER SELECT -->
<tr>
<th>Name</th>
<th><?php echo NAME; ?></th>
<td>
<select name="a_user" class="name dropdown">
<?php
+3 -3
View File
@@ -150,9 +150,9 @@ if (!$sql || mysqli_num_rows($sql) == 0) {
<table cellpadding="1" cellspacing="1" id="offs">
<thead>
<tr>
<td>Player</td>
<td>Alliance</td>
<td>Date</td>
<td><?php echo PLAYER; ?></td>
<td><?php echo ALLIANCE; ?></td>
<td><?php echo DATE; ?></td>
</tr>
</thead>
+6 -6
View File
@@ -37,7 +37,7 @@ $t = isset($_GET['t']) ? (int)$_GET['t'] : 0;
<div class="clear"></div>
<h4 class="chartHeadline">Military events</h4>
<h4 class="chartHeadline"><?php echo TZ_MILITARY_EVENTS; ?></h4>
<div id="submenu">
@@ -45,14 +45,14 @@ $t = isset($_GET['t']) ? (int)$_GET['t'] : 0;
<a href="allianz.php?s=3&f=32">
<img src="img/x.gif"
class="<?php echo ($f === 32 ? 'active btn_def' : 'btn_def'); ?>"
alt="Defender" title="Defender" />
alt="<?php echo DEFENDER; ?>" title="<?php echo DEFENDER; ?>" />
</a>
<!-- ATTACKER -->
<a href="allianz.php?s=3&f=31">
<img src="img/x.gif"
class="<?php echo ($f === 31 ? 'active btn_off' : 'btn_off'); ?>"
alt="Attacker" title="Attacker" />
alt="<?php echo ATTACKER; ?>" title="<?php echo ATTACKER; ?>" />
</a>
</div>
@@ -189,9 +189,9 @@ if ($f === 31 || $f === 32) {
<table cellpadding="1" cellspacing="1" id="offs">
<thead>
<tr>
<td>Player</td>
<td>Alliance</td>
<td>Date</td>
<td><?php echo PLAYER; ?></td>
<td><?php echo ALLIANCE; ?></td>
<td><?php echo DATE; ?></td>
</tr>
</thead>
+4 -4
View File
@@ -40,7 +40,7 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Change name</th>
<th colspan="2"><?php echo TZ_CHANGE_NAME; ?></th>
</tr>
</thead>
@@ -48,7 +48,7 @@ include("alli_menu.tpl");
<!-- TAG -->
<tr>
<th>Tag</th>
<th><?php echo TAG; ?></th>
<td>
<input class="tag text"
name="ally1"
@@ -63,7 +63,7 @@ include("alli_menu.tpl");
<!-- NAME -->
<tr>
<th>Name</th>
<th><?php echo NAME; ?></th>
<td>
<input class="name text"
name="ally2"
@@ -82,7 +82,7 @@ include("alli_menu.tpl");
<!-- SUBMIT -->
<p>
<button type="submit" name="s1" id="btn_ok" class="trav_buttons">
Ok
<?php echo TZ_OK_2; ?>
</button>
</p>
+5 -5
View File
@@ -80,16 +80,16 @@ include("alli_menu.tpl");
<table cellpadding="1" cellspacing="1" id="position" class="small_option">
<thead>
<tr>
<th colspan="2">Assign to position</th>
<th colspan="2"><?php echo TZ_ASSIGN_TO_POSITION; ?></th>
</tr>
</thead>
<tbody>
<tr>
<th>Name:</th>
<th><?php echo TZ_NAME; ?></th>
<td><?php echo htmlspecialchars($playername, ENT_QUOTES, 'UTF-8');?></td>
</tr>
<tr>
<th>Position:</th>
<th><?php echo TZ_POSITION; ?></th>
<td>
<input class="name text"
type="text"
@@ -106,7 +106,7 @@ include("alli_menu.tpl");
<table cellpadding="1" cellspacing="1" id="rights" class="small_option">
<thead>
<tr>
<th colspan="2">Assign rights</th>
<th colspan="2"><?php echo TZ_ASSIGN_RIGHTS; ?></th>
</tr>
</thead>
<tbody>
@@ -128,7 +128,7 @@ foreach ($map as $r) {
</table>
<?php } else {?>
<!-- Liderul isi editeaza doar rank-ul -->
<p style="margin:10px 0;color:#666;">As a leader, you can only change your title. Your rights remain at their maximum.</p>
<p style="margin:10px 0;color:#666;"><?php echo TZ_AS_A_LEADER_YOU_CAN_ONLY_CHANGE_YO; ?></p>
<?php
// pastram drepturile ca hidden ca allianz.php sa nu le reseteze la 0
foreach ($map as $r) {
+2 -2
View File
@@ -91,7 +91,7 @@ function send_data() {
<form name="form1" onsubmit="return send_data();">
<div id="TitleName" class="chatHeader">Ally-Chat</div>
<div id="TitleName" class="chatHeader"><?php echo TZ_ALLY_CHAT; ?></div>
<div id="chatContainer"
style="position:relative; height:220px; width:500px; overflow:hidden; background:#FFF; border:1px solid #C0C0C0;">
@@ -130,7 +130,7 @@ function send_data() {
<input type="button"
id="btn_ok"
style="border:0; float:left;"
alt="ok"
alt="<?php echo TZ_OK_3; ?>"
onclick="send_data();" />
</td>
</tr>
+13 -13
View File
@@ -50,14 +50,14 @@ $allyId = (int)$session->alliance;
<thead>
<tr>
<th colspan="2">Alliance diplomacy</th>
<th colspan="2"><?php echo TZ_ALLIANCE_DIPLOMACY; ?></th>
</tr>
</thead>
<tbody>
<tr>
<th>Alliance</th>
<th><?php echo ALLIANCE; ?></th>
<td>
<input class="ally text" type="text" name="a_name" maxlength="15">
</td>
@@ -66,15 +66,15 @@ $allyId = (int)$session->alliance;
<tr><td colspan="2" class="empty"></td></tr>
<tr>
<td colspan="2"><label><input class="radio" type="radio" name="dipl" value="1"> offer a confederation</label></td>
<td colspan="2"><label><input class="radio" type="radio" name="dipl" value="1"> <?php echo TZ_OFFER_A_CONFEDERATION; ?></label></td>
</tr>
<tr>
<td colspan="2"><label><input class="radio" type="radio" name="dipl" value="2"> offer non-aggression pact</label></td>
<td colspan="2"><label><input class="radio" type="radio" name="dipl" value="2"> <?php echo TZ_OFFER_NON_AGGRESSION_PACT; ?></label></td>
</tr>
<tr>
<td colspan="2"><label><input class="radio" type="radio" name="dipl" value="3"> declare war</label></td>
<td colspan="2"><label><input class="radio" type="radio" name="dipl" value="3"> <?php echo TZ_DECLARE_WAR; ?></label></td>
</tr>
</tbody>
@@ -84,14 +84,14 @@ $allyId = (int)$session->alliance;
<table cellpadding="1" cellspacing="1" id="hint" class="infos">
<thead>
<tr>
<th colspan="2">Hint</th>
<th colspan="2"><?php echo TZ_HINT; ?></th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
It's part of diplomatic etiquette to talk to another alliance before sending an offer.
<?php echo TZ_IT_S_PART_OF_DIPLOMATIC_ETIQUETTE; ?>
</td>
</tr>
</tbody>
@@ -116,7 +116,7 @@ $allyId = (int)$session->alliance;
<thead>
<tr>
<th colspan="3">Own offers</th>
<th colspan="3"><?php echo OWN_OFFERS; ?></th>
</tr>
</thead>
@@ -166,15 +166,15 @@ if (!empty($offers)) {
<table cellpadding="1" cellspacing="1" id="tip" class="infos">
<thead>
<tr>
<th colspan="2">Tip</th>
<th colspan="2"><?php echo TZ_TIP; ?></th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
Use <span class="e">[diplomatie]</span>, <span class="e">[ally]</span>,
<span class="e">[nap]</span>, <span class="e">[war]</span> in description.
<?php echo TZ_USE; ?> <span class="e">[diplomatie]</span>, <span class="e">[ally]</span>,
<span class="e">[nap]</span>, <span class="e">[war]</span> <?php echo TZ_IN_DESCRIPTION; ?>
</td>
</tr>
</tbody>
@@ -185,7 +185,7 @@ if (!empty($offers)) {
<thead>
<tr>
<th colspan="4">Foreign offers</th>
<th colspan="4"><?php echo TZ_FOREIGN_OFFERS; ?></th>
</tr>
</thead>
@@ -244,7 +244,7 @@ if (!empty($invites)) {
<thead>
<tr>
<th colspan="3">Existing relationships</th>
<th colspan="3"><?php echo TZ_EXISTING_RELATIONSHIPS; ?></th>
</tr>
</thead>
+1 -1
View File
@@ -36,7 +36,7 @@ $opt = $database->getAlliPermissions($session->uid, $aid);
* ========================================================= */
echo $aid > 0
? "<h1>".$allianceinfo['tag']." - ".$allianceinfo['name']."</h1>"
: "<h1>Forum</h1>";
: "<h1>".FORUM."</h1>";
include("alli_menu.tpl");
+4 -4
View File
@@ -34,14 +34,14 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Invite a player into the alliance</th>
<th colspan="2"><?php echo TZ_INVITE_A_PLAYER_INTO_THE_ALLIANCE; ?></th>
</tr>
</thead>
<tbody>
<tr>
<th>Name</th>
<th><?php echo NAME; ?></th>
<td>
<input class="name text" type="text" name="a_name" maxlength="30">
<span class="error"></span>
@@ -58,7 +58,7 @@ include("alli_menu.tpl");
id="btn_ok"
class="trav_buttons"
onclick="this.disabled=true;this.form.submit();">
Ok
<?php echo TZ_OK_2; ?>
</button>
</p>
@@ -73,7 +73,7 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Invitations:</th>
<th colspan="2"><?php echo TZ_INVITATIONS; ?></th>
</tr>
</thead>
+4 -4
View File
@@ -40,7 +40,7 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Kick Player:</th>
<th colspan="2"><?php echo TZ_KICK_PLAYER; ?></th>
</tr>
</thead>
@@ -48,12 +48,12 @@ include("alli_menu.tpl");
<tr>
<th colspan="2">
Here you can kick the players from your alliance.
<?php echo TZ_HERE_YOU_CAN_KICK_THE_PLAYERS_FROM; ?>
</th>
</tr>
<tr>
<th>Name</th>
<th><?php echo NAME; ?></th>
<td>
<select name="a_user" class="name dropdown">
@@ -95,7 +95,7 @@ include("alli_menu.tpl");
id="btn_ok"
class="trav_buttons"
onclick="this.disabled=true;this.form.submit();">
Ok
<?php echo TZ_OK_2; ?>
</button>
</p>
+3 -3
View File
@@ -42,7 +42,7 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Link to the forum</th>
<th colspan="2"><?php echo TZ_LINK_TO_THE_FORUM; ?></th>
</tr>
</thead>
@@ -75,7 +75,7 @@ include("alli_menu.tpl");
<tr>
<td colspan="2" class="info">
If your alliance wants to use an external forum, you can enter the url here.
<?php echo TZ_IF_YOUR_ALLIANCE_WANTS_TO_USE_AN_E; ?>
</td>
</tr>
@@ -90,7 +90,7 @@ include("alli_menu.tpl");
id="btn_ok"
class="trav_buttons"
onclick="this.disabled=true;this.form.submit();">
Ok
<?php echo TZ_OK_2; ?>
</button>
</p>
+3 -3
View File
@@ -38,12 +38,12 @@ include("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Alliance events</th>
<th colspan="2"><?php echo TZ_ALLIANCE_EVENTS; ?></th>
</tr>
<tr>
<td>Event</td>
<td>Date</td>
<td><?php echo TZ_EVENT; ?></td>
<td><?php echo DATE; ?></td>
</tr>
</thead>
+3 -3
View File
@@ -45,7 +45,7 @@ include_once("alli_menu.tpl");
<thead>
<tr>
<th colspan="2">Options</th>
<th colspan="2"><?php echo OPTION; ?></th>
</tr>
</thead>
@@ -123,7 +123,7 @@ foreach ($options as $value => $optData) {
<td class="sel">
<input class="radio" type="radio" name="o" value="11">
</td>
<td class="val">Quit alliance</td>
<td class="val"><?php echo TZ_QUIT_ALLIANCE; ?></td>
</tr>
</tbody>
@@ -137,7 +137,7 @@ foreach ($options as $value => $optData) {
id="btn_ok"
class="trav_buttons"
onclick="this.disabled=true;this.form.submit();">
Ok
<?php echo TZ_OK_2; ?>
</button>
</p>
+11 -11
View File
@@ -74,11 +74,11 @@ include("alli_menu.tpl");
<table cellpadding="1" cellspacing="1" id="profile">
<thead>
<tr>
<th colspan="2">Alliance</th>
<th colspan="2"><?php echo ALLIANCE; ?></th>
</tr>
<tr>
<td>Details</td>
<td>Description</td>
<td><?php echo DETAIL; ?></td>
<td><?php echo DESCRIPTION; ?></td>
</tr>
</thead>
@@ -91,12 +91,12 @@ include("alli_menu.tpl");
<table cellpadding="0" cellspacing="0">
<tr>
<th>Tag</th>
<th><?php echo TAG; ?></th>
<td><?php echo htmlspecialchars($allianceinfo['tag']); ?></td>
</tr>
<tr>
<th>Name</th>
<th><?php echo NAME; ?></th>
<td><?php echo htmlspecialchars($allianceinfo['name']); ?></td>
</tr>
@@ -104,7 +104,7 @@ include("alli_menu.tpl");
<!-- ========================= RANK FIX ========================= -->
<tr>
<th>Rank</th>
<th><?php echo RANK; ?></th>
<td>
<?php
// FORCE ranking initialization (TravianZ safe trigger)
@@ -127,12 +127,12 @@ echo $rankValue . ".";
</tr>
<tr>
<th>Points</th>
<th><?php echo POINTS; ?></th>
<td><?php echo (int)$totalpop; ?></td>
</tr>
<tr>
<th>Members</th>
<th><?php echo TZ_MEMBERS; ?></th>
<td><?php echo count($memberlist); ?></td>
</tr>
@@ -180,9 +180,9 @@ if (!empty($allianceinfo['forumlink']) && $allianceinfo['forumlink'] != '0') {
<thead>
<tr>
<th>&nbsp;</th>
<th>Player</th>
<th>Population</th>
<th>Villages</th>
<th><?php echo PLAYER; ?></th>
<th><?php echo POP; ?></th>
<th><?php echo VILLAGES; ?></th>
<?php if ($aid == $session->alliance) echo "<th>&nbsp;</th>"; ?>
</tr>
</thead>
+5 -5
View File
@@ -58,7 +58,7 @@ $minEmbassyLevel = 0;
<table cellpadding="1" cellspacing="1" id="quit" class="small_option">
<thead>
<tr>
<th colspan="2">Quit alliance</th>
<th colspan="2"><?php echo TZ_QUIT_ALLIANCE; ?></th>
</tr>
</thead>
@@ -76,7 +76,7 @@ if ($isOwner && $membersCount > 1) {
?>
<tr>
<td colspan="2" class="info">
Because you are the alliance founder, you need to select a replacement founder before you leave.
<?php echo TZ_BECAUSE_YOU_ARE_THE_ALLIANCE_FOUND; ?>
</td>
</tr>
@@ -118,12 +118,12 @@ if ($isOwner && $membersCount > 1) {
<tr>
<td colspan="2" class="info">
<br />
In order to quit the alliance you have to enter your password again for safety reasons.
<?php echo TZ_IN_ORDER_TO_QUIT_THE_ALLIANCE_YOU; ?>
</td>
</tr>
<tr>
<th>password:</th>
<th><?php echo TZ_PASSWORD; ?></th>
<td>
<input class="pass text" type="password" name="pw" maxlength="20">
<span class="error3"><?php echo $form->getError("pw"); ?></span>
@@ -138,7 +138,7 @@ if ($isOwner && $membersCount > 1) {
<br />
Unfortunately, there are no members of the alliance with Embassy at level
<?php echo (int)$minEmbassyLevel; ?> or more. In this case, you will not be able to reassign the founder role.
You can still <a href="allianz.php?s=5">kick all members</a> and quit the alliance afterwards.
You can still <a href="allianz.php?s=5"><?php echo TZ_KICK_ALL_MEMBERS; ?></a> <?php echo TZ_AND_QUIT_THE_ALLIANCE_AFTERWARDS; ?>
</span>
<?php endif; ?>