mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-16 16:21:01 +00:00
translating
This commit is contained in:
+45
-45
@@ -9,7 +9,7 @@
|
|||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
include ("./GameEngine/Lang/".LANG.".php");
|
||||||
|
|
||||||
class Building {
|
class Building {
|
||||||
|
|
||||||
@@ -178,51 +178,51 @@ class Building {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function procResType($ref) {
|
public function procResType($ref) {
|
||||||
global $session;
|
global $session, $lang;
|
||||||
switch($ref) {
|
switch($ref) {
|
||||||
case 1: $build = "Woodcutter"; break;
|
case 1: $build = $lang['buildings'][1]; break;
|
||||||
case 2: $build = "Clay Pit"; break;
|
case 2: $build = $lang['buildings'][2]; break;
|
||||||
case 3: $build = "Iron Mine"; break;
|
case 3: $build = $lang['buildings'][3]; break;
|
||||||
case 4: $build = "Cropland"; break;
|
case 4: $build = $lang['buildings'][4]; break;
|
||||||
case 5: $build = "Sawmill"; break;
|
case 5: $build = $lang['buildings'][5]; break;
|
||||||
case 6: $build = "Brickyard"; break;
|
case 6: $build = $lang['buildings'][6]; break;
|
||||||
case 7: $build = "Iron Foundry"; break;
|
case 7: $build = $lang['buildings'][7]; break;
|
||||||
case 8: $build = "Grain Mill"; break;
|
case 8: $build = $lang['buildings'][8]; break;
|
||||||
case 9: $build = "Bakery"; break;
|
case 9: $build = $lang['buildings'][9]; break;
|
||||||
case 10: $build = "Warehouse"; break;
|
case 10: $build = $lang['buildings'][10]; break;
|
||||||
case 11: $build = "Granary"; break;
|
case 11: $build = $lang['buildings'][11]; break;
|
||||||
case 12: $build = "Blacksmith"; break;
|
case 12: $build = $lang['buildings'][12]; break;
|
||||||
case 13: $build = "Armoury"; break;
|
case 13: $build = $lang['buildings'][13]; break;
|
||||||
case 14: $build = "Tournament Square"; break;
|
case 14: $build = $lang['buildings'][14]; break;
|
||||||
case 15: $build = "Main Building"; break;
|
case 15: $build = $lang['buildings'][15]; break;
|
||||||
case 16: $build = "Rally Point"; break;
|
case 16: $build = $lang['buildings'][16]; break;
|
||||||
case 17: $build = "Marketplace"; break;
|
case 17: $build = $lang['buildings'][17]; break;
|
||||||
case 18: $build = "Embassy"; break;
|
case 18: $build = $lang['buildings'][18]; break;
|
||||||
case 19: $build = "Barracks"; break;
|
case 19: $build = $lang['buildings'][19]; break;
|
||||||
case 20: $build = "Stable"; break;
|
case 20: $build = $lang['buildings'][20]; break;
|
||||||
case 21: $build = "Workshop"; break;
|
case 21: $build = $lang['buildings'][21]; break;
|
||||||
case 22: $build = "Academy"; break;
|
case 22: $build = $lang['buildings'][22]; break;
|
||||||
case 23: $build = "Cranny"; break;
|
case 23: $build = $lang['buildings'][23]; break;
|
||||||
case 24: $build = "Town Hall"; break;
|
case 24: $build = $lang['buildings'][24]; break;
|
||||||
case 25: $build = "Residence"; break;
|
case 25: $build = $lang['buildings'][25]; break;
|
||||||
case 26: $build = "Palace"; break;
|
case 26: $build = $lang['buildings'][26]; break;
|
||||||
case 27: $build = "Treasury"; break;
|
case 27: $build = $lang['buildings'][27]; break;
|
||||||
case 28: $build = "Trade Office"; break;
|
case 28: $build = $lang['buildings'][28]; break;
|
||||||
case 29: $build = "Great Barracks"; break;
|
case 29: $build = $lang['buildings'][29]; break;
|
||||||
case 30: $build = "Great Stable"; break;
|
case 30: $build = $lang['buildings'][30]; break;
|
||||||
case 31: $build = "City Wall"; break;
|
case 31: $build = $lang['buildings'][31]; break;
|
||||||
case 32: $build = "Earth Wall"; break;
|
case 32: $build = $lang['buildings'][32]; break;
|
||||||
case 33: $build = "Palisade"; break;
|
case 33: $build = $lang['buildings'][33]; break;
|
||||||
case 34: $build = "Stonemason's Lodge"; break;
|
case 34: $build = $lang['buildings'][34]; break;
|
||||||
case 35: $build = "Brewery"; break;
|
case 35: $build = $lang['buildings'][35]; break;
|
||||||
case 36: $build = "Trapper"; break;
|
case 36: $build = $lang['buildings'][36]; break;
|
||||||
case 37: $build = "Hero's Mansion"; break;
|
case 37: $build = $lang['buildings'][37]; break;
|
||||||
case 38: $build = "Great Warehouse"; break;
|
case 38: $build = $lang['buildings'][38]; break;
|
||||||
case 39: $build = "Great Granary"; break;
|
case 39: $build = $lang['buildings'][39]; break;
|
||||||
case 40: $build = "Wonder of the World"; break;
|
case 40: $build = $lang['buildings'][40]; break;
|
||||||
case 41: $build = "Horse Drinking Trough"; break;
|
case 41: $build = $lang['buildings'][41]; break;
|
||||||
case 42: $build = "Great Workshop"; break;
|
case 42: $build = $lang['buildings'][42]; break;
|
||||||
default: $build = "Error"; break;
|
default: $build = $lang['buildings'][43];; break;
|
||||||
}
|
}
|
||||||
return $build;
|
return $build;
|
||||||
}
|
}
|
||||||
|
|||||||
+55
-2
@@ -23,6 +23,8 @@ define("TRIBE6","Monsters");
|
|||||||
define("HOME","Homepage");
|
define("HOME","Homepage");
|
||||||
define("INSTRUCT","Instructions");
|
define("INSTRUCT","Instructions");
|
||||||
define("ADMIN_PANEL","Admin Panel");
|
define("ADMIN_PANEL","Admin Panel");
|
||||||
|
define("MULTIHUNTER_PAN","Multihunter Panel");
|
||||||
|
define("CREATE_NAT","Create Natars");
|
||||||
define("MASS_MESSAGE","Mass Message");
|
define("MASS_MESSAGE","Mass Message");
|
||||||
define("LOGOUT","Logout");
|
define("LOGOUT","Logout");
|
||||||
define("PROFILE","Profile");
|
define("PROFILE","Profile");
|
||||||
@@ -31,6 +33,7 @@ define("UPDATE_T_10","Update Top 10");
|
|||||||
define("SYSTEM_MESSAGE","System message");
|
define("SYSTEM_MESSAGE","System message");
|
||||||
define("TRAVIAN_PLUS","Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></span></span></b>");
|
define("TRAVIAN_PLUS","Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></span></span></b>");
|
||||||
define("CONTACT","Contact us!");
|
define("CONTACT","Contact us!");
|
||||||
|
define("GAME_RULES","Game Rules");
|
||||||
|
|
||||||
//MENU
|
//MENU
|
||||||
define("REG","Register");
|
define("REG","Register");
|
||||||
@@ -366,6 +369,56 @@ define("MASS_SENT","Mass IGM was sent");
|
|||||||
4 => 'Reports',
|
4 => 'Reports',
|
||||||
5 => 'Messages',
|
5 => 'Messages',
|
||||||
6 => 'Plus menu');
|
6 => 'Plus menu');
|
||||||
|
|
||||||
|
$lang['buildings'] = array (
|
||||||
|
1 => "Woodcutter",
|
||||||
|
2 => "Clay Pit",
|
||||||
|
3 => "Iron Mine",
|
||||||
|
4 => "Cropland",
|
||||||
|
5 => "Sawmill",
|
||||||
|
6 => "Brickyard",
|
||||||
|
7 => "Iron Foundry",
|
||||||
|
8 => "Grain Mill",
|
||||||
|
9 => "Bakery",
|
||||||
|
10 => "Warehouse",
|
||||||
|
11 => "Granary",
|
||||||
|
12 => "Blacksmith",
|
||||||
|
13 => "Armoury",
|
||||||
|
14 => "Tournament Square",
|
||||||
|
15 => "Main Building",
|
||||||
|
16 => "Rally Point",
|
||||||
|
17 => "Marketplace",
|
||||||
|
18 => "Embassy",
|
||||||
|
19 => "Barracks",
|
||||||
|
20 => "Stable",
|
||||||
|
21 => "Workshop",
|
||||||
|
22 => "Academy",
|
||||||
|
23 => "Cranny",
|
||||||
|
24 => "Town Hall",
|
||||||
|
25 => "Residence",
|
||||||
|
26 => "Palace",
|
||||||
|
27 => "Treasury",
|
||||||
|
28 => "Trade Office",
|
||||||
|
29 => "Great Barracks",
|
||||||
|
30 => "Great Stable",
|
||||||
|
31 => "City Wall",
|
||||||
|
32 => "Earth Wall",
|
||||||
|
33 => "Palisade",
|
||||||
|
34 => "Stonemason's Lodge",
|
||||||
|
35 => "Brewery",
|
||||||
|
36 => "Trapper",
|
||||||
|
37 => "Hero's Mansion",
|
||||||
|
38 => "Great Warehouse",
|
||||||
|
39 => "Great Granary",
|
||||||
|
40 => "Wonder of the World",
|
||||||
|
41 => "Horse Drinking Trough",
|
||||||
|
42 => "Great Workshop",
|
||||||
|
43 => "Error");
|
||||||
|
|
||||||
|
$lang['fields'] = array (
|
||||||
|
0 => ' Level ',
|
||||||
|
1 => 'Woodcutter Level',
|
||||||
|
2 => 'Clay Pit Level',
|
||||||
|
3 => 'Iron Mine Level',
|
||||||
|
4 => 'Cropland Level');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ define("TRIBE6","Монстры");
|
|||||||
define("HOME","Главная");
|
define("HOME","Главная");
|
||||||
define("INSTRUCT","Инструкции");
|
define("INSTRUCT","Инструкции");
|
||||||
define("ADMIN_PANEL","Админка");
|
define("ADMIN_PANEL","Админка");
|
||||||
|
define("MULTIHUNTER_PAN","Мультих. панель");
|
||||||
|
define("CREATE_NAT","Создать Натар");
|
||||||
define("MASS_MESSAGE","Сообщение всем");
|
define("MASS_MESSAGE","Сообщение всем");
|
||||||
define("LOGOUT","Выйти");
|
define("LOGOUT","Выйти");
|
||||||
define("PROFILE","Профиль");
|
define("PROFILE","Профиль");
|
||||||
@@ -31,6 +33,7 @@ define("UPDATE_T_10","Обновить ТОП 10");
|
|||||||
define("SYSTEM_MESSAGE","Сист. сообщение");
|
define("SYSTEM_MESSAGE","Сист. сообщение");
|
||||||
define("TRAVIAN_PLUS","Травиан <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></span></span></b>");
|
define("TRAVIAN_PLUS","Травиан <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></span></span></b>");
|
||||||
define("CONTACT","Связь с нами!");
|
define("CONTACT","Связь с нами!");
|
||||||
|
define("GAME_RULES","Правила игры");
|
||||||
|
|
||||||
//MENU
|
//MENU
|
||||||
define("REG","Регистрация");
|
define("REG","Регистрация");
|
||||||
@@ -366,4 +369,57 @@ define("MASS_SENT","Mass IGM was sent");
|
|||||||
4 => 'Отчеты',
|
4 => 'Отчеты',
|
||||||
5 => 'Сообщения',
|
5 => 'Сообщения',
|
||||||
6 => 'Plus меню');
|
6 => 'Plus меню');
|
||||||
|
|
||||||
|
$lang['buildings'] = array (
|
||||||
|
1 => "Лесопилка",
|
||||||
|
2 => "Глиняный карьер",
|
||||||
|
3 => "Железный рудник",
|
||||||
|
4 => "Ферма",
|
||||||
|
5 => "Лесопильный завод",
|
||||||
|
6 => "Кирпичный завод",
|
||||||
|
7 => "Сталелитейный завод",
|
||||||
|
8 => "Grain Mill",
|
||||||
|
9 => "Bakery",
|
||||||
|
10 => "Warehouse",
|
||||||
|
11 => "Granary",
|
||||||
|
12 => "Blacksmith",
|
||||||
|
13 => "Armoury",
|
||||||
|
14 => "Tournament Square",
|
||||||
|
15 => "Main Building",
|
||||||
|
16 => "Rally Point",
|
||||||
|
17 => "Marketplace",
|
||||||
|
18 => "Embassy",
|
||||||
|
19 => "Barracks",
|
||||||
|
20 => "Stable",
|
||||||
|
21 => "Workshop",
|
||||||
|
22 => "Academy",
|
||||||
|
23 => "Cranny",
|
||||||
|
24 => "Town Hall",
|
||||||
|
25 => "Residence",
|
||||||
|
26 => "Palace",
|
||||||
|
27 => "Treasury",
|
||||||
|
28 => "Trade Office",
|
||||||
|
29 => "Great Barracks",
|
||||||
|
30 => "Great Stable",
|
||||||
|
31 => "City Wall",
|
||||||
|
32 => "Earth Wall",
|
||||||
|
33 => "Palisade",
|
||||||
|
34 => "Stonemason's Lodge",
|
||||||
|
35 => "Brewery",
|
||||||
|
36 => "Trapper",
|
||||||
|
37 => "Hero's Mansion",
|
||||||
|
38 => "Great Warehouse",
|
||||||
|
39 => "Great Granary",
|
||||||
|
40 => "Wonder of the World",
|
||||||
|
41 => "Horse Drinking Trough",
|
||||||
|
42 => "Great Workshop",
|
||||||
|
43 => "Error");
|
||||||
|
|
||||||
|
|
||||||
|
$lang['fields'] = array (
|
||||||
|
0 => ' Уровень ',
|
||||||
|
1 => 'Лесопилка уровень',
|
||||||
|
2 => 'Глиняный карьер уровень ',
|
||||||
|
3 => 'Железный рудник уровень',
|
||||||
|
4 => 'Ферма уровень');
|
||||||
?>
|
?>
|
||||||
|
|||||||
+6
-6
@@ -16,10 +16,10 @@ $arrayVillage = $village->resarray;
|
|||||||
?>
|
?>
|
||||||
<map name="rx" id="rx">
|
<map name="rx" id="rx">
|
||||||
<?php
|
<?php
|
||||||
for($i=1;$i<=18;$i++) {echo " <area href=\"build.php?id=$i\" coords=\"$coorarray[$i]\" shape=\"circle\" title=\"".$building->procResType($arrayVillage['f'.$i.'t'])." Level ".$arrayVillage['f'.$i]."\"/>\r\n";
|
for($i=1;$i<=18;$i++) {echo " <area href=\"build.php?id=$i\" coords=\"$coorarray[$i]\" shape=\"circle\" title=\"".$building->procResType($arrayVillage['f'.$i.'t']).$lang['fields'][0].$arrayVillage['f'.$i]."\"/>\r\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<area href="dorf2.php" coords="144,131,36" shape="circle" title="Village centre" alt="" />
|
<area href="dorf2.php" coords="144,131,36" shape="circle" title="<?php echo $lang['header'][1]; ?>" alt="" />
|
||||||
</map>
|
</map>
|
||||||
|
|
||||||
<div id="village_map" class="f<?php echo $village->type; ?>">
|
<div id="village_map" class="f<?php echo $village->type; ?>">
|
||||||
@@ -28,10 +28,10 @@ for($i=1;$i<=18;$i++) {
|
|||||||
if($arrayVillage['f'.$i.'t'] != 0) {
|
if($arrayVillage['f'.$i.'t'] != 0) {
|
||||||
$text = "";
|
$text = "";
|
||||||
switch($i){
|
switch($i){
|
||||||
case 1:$text = "Woodcutter Level";break;
|
case 1:$text = $lang['fileds'][1];break;
|
||||||
case 2:$text = "Clay Pit Level";break;
|
case 2:$text = $lang['fileds'][2];break;
|
||||||
case 3:$text = "Iron Mine Level";break;
|
case 3:$text = $lang['fileds'][3];break;
|
||||||
case 4:$text = "Cropland Level";break;
|
case 4:$text = $lang['fileds'][4];break;
|
||||||
}
|
}
|
||||||
echo "<img src=\"img/x.gif\" class=\"reslevel rf$i level".$arrayVillage['f'.$i]."\" alt=\"$text ".$arrayVillage['f'.$i]."\" />";
|
echo "<img src=\"img/x.gif\" class=\"reslevel rf$i level".$arrayVillage['f'.$i]."\" alt=\"$text ".$arrayVillage['f'.$i]."\" />";
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-14
@@ -38,16 +38,16 @@ div.c1 {text-align: center}
|
|||||||
|
|
||||||
<p><a href="<?php echo HOMEPAGE; ?>"><?php echo HOME; ?></a> <a href="spieler.php?uid=<?php echo $session->uid; ?>"><?php echo PROFILE; ?></a> <a href="#" onclick="return Popup(0,0,1);"><?php echo INSTRUCT; ?></a> <?php if($session->access == MULTIHUNTER) {
|
<p><a href="<?php echo HOMEPAGE; ?>"><?php echo HOME; ?></a> <a href="spieler.php?uid=<?php echo $session->uid; ?>"><?php echo PROFILE; ?></a> <a href="#" onclick="return Popup(0,0,1);"><?php echo INSTRUCT; ?></a> <?php if($session->access == MULTIHUNTER) {
|
||||||
|
|
||||||
echo "<a href=\"Admin/admin.php\"><font color=\"Blue\">Multihunter Panel</font></a>";
|
echo "<a href=\"Admin/admin.php\"><font color=\"Blue\">".MULTIHUNTER_PAN."</font></a>";
|
||||||
} ?> <?php if($session->access == ADMIN) {
|
} ?> <?php if($session->access == ADMIN) {
|
||||||
echo "<a href=\"admin.php\"><font color=\"Red\">".ADMIN_PANEL."</font></a>";
|
echo "<a href=\"admin.php\"><font color=\"Red\">".ADMIN_PANEL."</font></a>";
|
||||||
echo "<a href=\"massmessage.php\">".MASS_MESSAGE."</a>";
|
echo "<a href=\"massmessage.php\">".MASS_MESSAGE."</a>";
|
||||||
echo "<a href=\"medals.php\">".UPDATE_T_10."</a>";
|
echo "<a href=\"medals.php\">".UPDATE_T_10."</a>";
|
||||||
echo "<a href=\"sysmsg.php\">".SYSTEM_MESSAGE."</a>";
|
echo "<a href=\"sysmsg.php\">".SYSTEM_MESSAGE."</a>";
|
||||||
echo "<a href=\"create_account.php\">Create Natars</a>";
|
echo "<a href=\"create_account.php\">".CREATE_NAT."</a>";
|
||||||
} ?> <a href="logout.php"><?php echo LOGOUT; ?></a></p>
|
} ?> <a href="logout.php"><?php echo LOGOUT; ?></a></p>
|
||||||
|
|
||||||
<a href="rules.php"><b>Game Rules</b></a>
|
<a href="rules.php"><b><?php echo GAME_RULES; ?></b></a>
|
||||||
<p><a href="plus.php?id=3">Travian <b><span class="plus_g">P</span><span class="plus_o">l</span><span class="plus_g">u</span><span class="plus_o">s</span></b></a>
|
<p><a href="plus.php?id=3">Travian <b><span class="plus_g">P</span><span class="plus_o">l</span><span class="plus_g">u</span><span class="plus_o">s</span></b></a>
|
||||||
<a href="spieler.php?uid=0"><b><?php echo SUPPORT; ?></b></a>
|
<a href="spieler.php?uid=0"><b><?php echo SUPPORT; ?></b></a>
|
||||||
<br></p>
|
<br></p>
|
||||||
@@ -83,19 +83,9 @@ div.c1 {text-align: center}
|
|||||||
<div class="clear"></div><?php
|
<div class="clear"></div><?php
|
||||||
include("Templates/footer.tpl");
|
include("Templates/footer.tpl");
|
||||||
include("Templates/res.tpl");
|
include("Templates/res.tpl");
|
||||||
|
include("Templates/serv_time.tpl");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="stime">
|
|
||||||
<div id="ltime">
|
|
||||||
<div id="ltimeWrap">
|
|
||||||
<?php echo CALCULATED_IN; ?><b><?php
|
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
|
||||||
?></b> ms
|
|
||||||
<br>
|
|
||||||
<?php echo SERVER_TIME; ?><span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ce"></div><?php
|
<div id="ce"></div><?php
|
||||||
die();
|
die();
|
||||||
|
|||||||
Reference in New Issue
Block a user