From 02312749070f67a67e0f4876cae37e322f2cd496 Mon Sep 17 00:00:00 2001 From: Shadow Date: Mon, 17 Feb 2014 08:11:54 +0200 Subject: [PATCH] lang update --- GameEngine/Lang/en.php | 39 +++++++ Templates/Map/mapview.tpl | 50 +++++---- Templates/Map/mapviewlarge.tpl | 50 +++++---- Templates/Map/vilview.tpl | 181 ++++++++++++++------------------- 4 files changed, 171 insertions(+), 149 deletions(-) diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 3c71dcbf..1a224535 100644 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -483,6 +483,45 @@ define("UNDERATTACK","The village is under attack"); define("OASISATTACK","The Oasis is under attack"); define("OASISATTACKS","Oasis Att."); +//SEND TROOP +define("REINFORCE","Reinforcement"); +define("NORMALATTACK","Normal Attack"); +define("RAID","Raid"); +define("OR","or"); +define("SENDTROOP","Send troops"); +define("TROOP","Troops"); +define("NOTROOP","no troops"); + +//map +define("DETAIL","Details"); +define("ABANDVALLEY","Abandoned valley"); +define("UNOCCUOASIS","Unoccupied oasis"); +define("OCCUOASIS","Occupied oasis"); +define("THERENOINFO","There is no
information available."); +define("LANDDIST","Land distribution"); +define("TRIBE","Tribe"); +define("ALLIANCE","Alliance"); +define("OWNER","Owner"); +define("POP","Population"); +define("REPORT","Report"); +define("OPTION","Options"); +define("CENTREMAP","Centre map"); +define("FNEWVILLAGE","Found new village"); +define("CULTUREPOINT","culture points"); +define("BUILDRALLY","build a rally point"); +define("SETTLERSAVAIL","settlers available"); +define("BEGINPRO","beginners protection"); +define("SENDMERC","Send merchant(s)"); +define("BAN","Player is banned"); +define("BUILDMARKET","Build marketplace"); +define("PERHOUR","per hour"); +define("BONUS","Bonus"); + +//other +define("VILLAGE","Village"); +define("OASIS","Oasis"); +define("PLAYER","Player"); + //LOGIN.php define("COOKIES","You must have cookies enabled to be able to log in. If you share this computer with other people you should log out after each session for your own safety."); diff --git a/Templates/Map/mapview.tpl b/Templates/Map/mapview.tpl index 549fba2b..a8aed256 100644 --- a/Templates/Map/mapview.tpl +++ b/Templates/Map/mapview.tpl @@ -17,6 +17,7 @@ ################################################################################# + if(isset($_GET['z'])) { $currentcoor = $database->getCoor($_GET['z']);++$requse2; $y = $currentcoor['y']; @@ -117,6 +118,7 @@ $neutralarray = array(); $friendarray = array(); $enemyarray = array(); $i=0; +$i2=0; //Load coor array $coorarray = array("53, 137, 90, 157, 53, 177, 16, 157","89, 117, 126, 137, 89, 157, 52, 137","125, 97, 162, 117, 125, 137, 88, 117","161, 77, 198, 97, 161, 117, 124, 97","197, 57, 234, 77, 197, 97, 160, 77","233, 37, 270, 57, 233, 77, 196, 57","269, 17, 306, 37, 269, 57, 232, 37","90, 157, 127, 177, 90, 197, 53, 177","126, 137, 163, 157, 126, 177, 89, 157","162, 117, 199, 137, 162, 157, 125, 137","198, 97, 235, 117, 198, 137, 161, 117","234, 77, 271, 97, 234, 117, 197, 97","270, 57, 307, 77, 270, 97, 233, 77","306, 37, 343, 57, 306, 77, 269, 57","127, 177, 164, 197, 127, 217, 90, 197","163, 157, 200, 177, 163, 197, 126, 177","199, 137, 236, 157, 199, 177, 162, 157","235, 117, 272, 137, 235, 157, 198, 137","271, 97, 308, 117, 271, 137, 234, 117","307, 77, 344, 97, 307, 117, 270, 97","343, 57, 380, 77, 343, 97, 306, 77","164, 197, 201, 217, 164, 237, 127, 217","200, 177, 237, 197, 200, 217, 163, 197","236, 157, 273, 177, 236, 197, 199, 177","272, 137, 309, 157, 272, 177, 235, 157","308, 117, 345, 137, 308, 157, 271, 137","344, 97, 381, 117, 344, 137, 307, 117","380, 77, 417, 97, 380, 117, 343, 97","201, 217, 238, 237, 201, 257, 164, 237","237, 197, 274, 217, 237, 237, 200, 217","273, 177, 310, 197, 273, 217, 236, 197","309, 157, 346, 177, 309, 197, 272, 177","345, 137, 382, 157, 345, 177, 308, 157","381, 117, 418, 137, 381, 157, 344, 137","417, 97, 454, 117, 417, 137, 380, 117","238, 237, 275, 257, 238, 277, 201, 257","274, 217, 311, 237, 274, 257, 237, 237","310, 197, 347, 217, 310, 237, 273, 217","346, 177, 383, 197, 346, 217, 309, 197","382, 157, 419, 177, 382, 197, 345, 177","418, 137, 455, 157, 418, 177, 381, 157","454, 117, 491, 137, 454, 157, 417, 137","275, 257, 312, 277, 275, 297, 238, 277","311, 237, 348, 257, 311, 277, 274, 257","347, 217, 384, 237, 347, 257, 310, 237","383, 197, 420, 217, 383, 237, 346, 217","419, 177, 456, 197, 419, 217, 382, 197","455, 157, 492, 177, 455, 197, 418, 177","491, 137, 528, 157, 491, 177, 454, 157"); $yrow = 0; @@ -124,6 +126,8 @@ $yrow = 0; $row = 0; $coorindex = 0; $map_js =''; +$map_gen=''; +$map_content=''; while ($donnees = mysql_fetch_assoc($result2)){ @@ -132,14 +136,17 @@ $friendarray=$database->getAllianceAlly($donnees["aliance_id"],1); $neutralarray=$database->getAllianceAlly($donnees["aliance_id"],2); $enemyarray=$database->getAllianceWar2($donnees["aliance_id"]); //var_dump($friendarray); + //echo "(".$friendarray[0]['alli1'].">0 or ".$donnees["aliance_id"].">0) and (".$friendarray[0]['alli1']."==".$donnees["aliance_id"]." or ".$friendarray[0]['alli2']."==".$donnees["aliance_id"].") and (".$session->alliance." != ".$targetalliance." and ".$session->alliance." and ".$targetalliance.")
\n"; - -$friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($friendarray[0]['alli1']==$session->alliance or $friendarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; - -$war = (($enemyarray[0]['alli1']>0 and $enemyarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($enemyarray[0]['alli1']==$session->alliance or $enemyarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; - -$neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($neutralarray[0]['alli1']==$session->alliance or $neutralarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; - +if (isset($friendarray[0])) { + $friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($friendarray[0]['alli1']==$session->alliance or $friendarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +}else $friend='0'; +if (isset($enemyarray[0])) { + $war = (($enemyarray[0]['alli1']>0 and $enemyarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($enemyarray[0]['alli1']==$session->alliance or $enemyarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +}else $war='0'; +if (isset($neutralarray[0])) { + $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($neutralarray[0]['alli1']==$session->alliance or $neutralarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +}else $neutral='0'; //echo $targetalliance.">>"; //var_dump($friendarray); //echo"|||
"; @@ -163,8 +170,9 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do } } + // Map content - if($donnees['ville_user']==3 && $donnees['ville_name']=='WW Buildingplan'){ + if($donnees['ville_user']==3 && $donnees['ville_name']==PLANVILLAGE){ $map_content .= "
$att
\r"; }else{ $map_content .= "
$att
\r"; @@ -200,7 +208,7 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do if($yrow == 6 && $i2 == 6) {$map_js .= "]\n";} else {$map_js .= ",";} } - $regcount += 1; + //$regcount += 1; } else {$map_js .= "]";} @@ -215,18 +223,18 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do
0 and $neutralarray[0]['alli2']>0 and $do goldclub != 0){echo " Crop Finder";}?>
-
Details
Player-
Population-
Alliance
+
-
-
diff --git a/Templates/Map/mapviewlarge.tpl b/Templates/Map/mapviewlarge.tpl index b24be63c..0268a10a 100644 --- a/Templates/Map/mapviewlarge.tpl +++ b/Templates/Map/mapviewlarge.tpl @@ -133,6 +133,8 @@ $yrow = 0; $row = 0; $coorindex = 0; $map_js =''; +$map_content=''; +$map_gen=''; $coorarray = array( "48, 253, 85, 273, 48, 293, 11, 273" ,"84, 233, 121, 253, 84, 273, 47, 253" @@ -313,12 +315,15 @@ $neutralarray=$database->getAllianceAlly($donnees["aliance_id"],2); $enemyarray=$database->getAllianceWar2($donnees["aliance_id"]); //var_dump($friendarray); //echo "(".$friendarray[0]['alli1'].">0 or ".$donnees["aliance_id"].">0) and (".$friendarray[0]['alli1']."==".$donnees["aliance_id"]." or ".$friendarray[0]['alli2']."==".$donnees["aliance_id"].") and (".$session->alliance." != ".$targetalliance." and ".$session->alliance." and ".$targetalliance.")
\n"; - -$friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($friendarray[0]['alli1']==$session->alliance or $friendarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; - -$war = (($enemyarray[0]['alli1']>0 and $enemyarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($enemyarray[0]['alli1']==$session->alliance or $enemyarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; - -$neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($neutralarray[0]['alli1']==$session->alliance or $neutralarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +if (isset($friendarray[0])) { + $friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($friendarray[0]['alli1']==$session->alliance or $friendarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +}else $friend='0'; +if (isset($enemyarray[0])) { + $war = (($enemyarray[0]['alli1']>0 and $enemyarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($enemyarray[0]['alli1']==$session->alliance or $enemyarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +}else $war='0'; +if (isset($neutralarray[0])) { + $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($neutralarray[0]['alli1']==$session->alliance or $neutralarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; +}else $neutral='0'; //echo $targetalliance.">>"; //var_dump($friendarray); @@ -327,8 +332,7 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do //echo in_array($targetalliance,$friendarray); $image = ($donnees['map_occupied'] == 1 && $donnees['map_fieldtype'] > 0)?(($donnees['ville_user'] == $session->uid)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b30': 'b20' :'b10' : 'b00') : (($targetalliance != 0)? ($friend==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b31': 'b21' :'b11' : 'b01') : ($war==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b32': 'b22' :'b12' : 'b02') : ($neutral==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b35': 'b25' :'b15' : 'b05') : ($targetalliance == $session->alliance? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b33': 'b23' :'b13' : 'b03') : ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b34': 'b24' :'b14' : 'b04'))))) : ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b34': 'b24' :'b14' : 'b04'))) : $donnees['map_image']; - // Map Attacks by Shadow and MisterX - + // Map Attacks by Shadow and MisterX $att = ''; if($session->plus) { $wref = $village->wid; @@ -342,7 +346,8 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do $att = ''; } } - + + // Map content if($donnees['ville_user']==3 && $donnees['ville_name']=='WW Buildingplan'){ $map_content .= "
$att
\r"; @@ -380,7 +385,7 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do if($yrow == 12 && $i2 == 12) {$map_js .= "]\n";} else {$map_js .= ",";} } - $regcount += 1; + //$regcount += 1; } else {$map_js .= "]";} @@ -401,21 +406,22 @@ $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $do
+
0 and $neutralarray[0]['alli2']>0 and $do
-
Details
Player-
Population-
Alliance-
+
-
-
diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl index 71873457..98761eae 100644 --- a/Templates/Map/vilview.tpl +++ b/Templates/Map/vilview.tpl @@ -1,35 +1,21 @@
getMInfo($_GET['d']); $uinfo = $database->getVillage($basearray['id']); $oasis1 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysql_real_escape_string($_GET['d'])); $oasis = mysql_fetch_assoc($oasis1); +$access=$session->access; ?>

(capital)
"; } -if($uinfo['owner']==3 && $uinfo['name']=='WW Buildingplan'){ +if($uinfo['owner']==3 && $uinfo['name']==PLANVILLAGE){ ?> -WW buildingplan +<?php echo PLANVILLAGE;?> <?php 
 switch($basearray['fieldtype']) {
@@ -73,41 +59,41 @@ case 0:
 switch($basearray['oasistype']) {
 case 1:
 case 2:
-$tt =  25% ".LUMBER.""; break; case 3: -$tt = "+25% lumber and +25% crop per hour\" title=\"+25% lumber and +25% crop per hour"; +$tt = "+25% ".LUMBER." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".LUMBER." and +25% ".CROP." ".PERHOUR; $ttt = " 25% ".LUMBER." 25% ".CROP.""; break; case 4: case 5: -$tt = "+25% clay per hour\" title=\"+25% clay per hour"; +$tt = "+25% ".CLAY." ".PERHOUR."\" title=\"+25% ".CLAY." ".PERHOUR; $ttt = " 25% ".CLAY.""; break; case 6: -$tt = "+25% clay and +25% crop per hour\" title=\"+25% clay and +25% crop per hour"; +$tt = "+25% ".CLAY." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".CLAY." and +25% ".CROP." ".PERHOUR; $ttt = " 25% ".CLAY." 25% ".CROP.""; break; case 7: case 8: -$tt = "+25% iron per hour\" title=\"+25% iron per hour"; +$tt = "+25% ".IRON." ".PERHOUR."\" title=\"+25% ".IRON." ".PERHOUR; $ttt = " 25% ".IRON.""; break; case 9: -$tt = "+25% iron and +25% crop per hour\" title=\"+25% iron and +25% crop per hour"; +$tt = "+25% ".IRON." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".IRON." and +25% ".CROP." ".PERHOUR; $ttt = " 25% ".IRON." 25% ".CROP.""; break; case 10: case 11: -$tt = "+25% crop per hour\" title=\"+25% crop per hour"; +$tt = "+25% ".CROP." ".PERHOUR."\" title=\"+25% ".CROP." ".PERHOUR; $ttt = " 25% ".CROP.""; break; case 12: -$tt = "+50% crop per hour\" title=\"+50% crop per hour"; +$tt = "+50% ".CROP." ".PERHOUR."\" title=\"+50% ".CROP." ".PERHOUR; $ttt = " 50% ".CROP.""; break; } @@ -133,12 +119,12 @@ if($oasis['owner'] == 2){ - + getUnit($_GET['d']); - $unarray = array(31=>"Rat","Spider","Snake","Bat","Wild Boar","Wolf","Bear","Crocodile","Tiger","Elephant"); + $unarray = array(31=>U31,U32,U33,U34,U35,U36,U37,U38,U39,U40); $a = 0; for ($i = 31; $i <= 40; $i++) { if($unit['u'.$i]){ @@ -152,7 +138,7 @@ if($oasis['owner'] == 2){ } } if($a == 10){ - echo ''; + echo ''; } @@ -162,7 +148,7 @@ if($oasis['owner'] == 2){
Troops::
no troops
- + - + - + @@ -230,7 +215,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $uinfo = $database->getUserArray($oasis['owner'],1); ?> - + @@ -279,6 +264,7 @@ if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; + $topic=$row['topic']; echo " - + - + @@ -327,30 +312,30 @@ if($type==18 or $type==19 or $type==20 or $type==21){
Reports::
There is no -
information available.
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; @@ -216,8 +202,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){ } }else{ ?>
There is no -
information available.
Tribe
Alliance
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; @@ -291,8 +277,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){ } }else{ ?>
There is no -
information available.
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; @@ -315,8 +301,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){ } }else{ ?>
There is no -
information available.
- + - + - + - + - + - + - + - + - + @@ -360,35 +345,35 @@ if($type==18 or $type==19 or $type==20 or $type==21){ else { ?>
Land distribution
Lumber<?php echo LUMBER;?> Woodcutters
Clay<?php echo CLAY;?> Clay Pits
Iron<?php echo IRON;?> Iron Mines
Crop<?php echo CROP;?> Croplands
- + getUserArray($basearray['owner'],1); ?> - - + + - + -'; } else echo ' '; ?> - + - +
Tribe
Alliance '.$database->getUserAlliance($basearray['owner']).'
Owner getUserField($basearray['owner'],'username',0); ?>
Population
- + "; -} -while($row = mysql_fetch_array($result)){ - $dataarray = explode(",",$row['data']); - $type = $row['ntype']; - echo ""; } }else{ ?> - + - + @@ -465,16 +437,16 @@ if($type==18 or $type==19 or $type==20 or $type==21){
Reports::
"; if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ echo "\"".$topic."\""; @@ -412,26 +398,12 @@ if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ echo " "; } $date = $generator->procMtime($row['time']); - echo "".$date[0]." ".date('H:i',$row['time'])." "; - echo "
"; -if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ - echo "\"".$topic."\""; - }else{ - echo " "; - } - $date = $generator->procMtime($row['time']); - echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no -
information available.
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; @@ -454,8 +427,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){ } }else{ ?>
There is no -
information available.
- + - + - - - + @@ -524,11 +493,11 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $data1['owner']); $data2 = mysql_fetch_assoc($query2); if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') { - echo "» Send troops. (Player is banned)"; + echo "» ".SENDTROOP." (".BAN.")"; } else if($data2['protect'] < time()) { - echo $village->resarray['f39']? "» Send troops." : "» Send troops. (build a rally point)"; + echo $village->resarray['f39']? "» ".SENDTROOP : "» ".SENDTROOP." (".BUILDRALLY.")"; } else { - echo "» Send troops. (beginners protection)"; + echo "» ".SENDTROOP." (".BEGINPRO.")"; } ?> @@ -536,10 +505,10 @@ if($type==18 or $type==19 or $type==20 or $type==21){
Options
» Centre map.» .
+ +
getProfileVillages($session->uid)); $need_cps = ${'cp'.$mode}[$total+1]; @@ -486,29 +458,26 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $enough_cp = false; } - $otext = ($oasis['name']); - if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { - $test = "» Found new village."; + + if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { + $test = "» ".FNEWVILLAGE.""; } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { - $test = "» Found new village. ($cps/$need_cps culture points)"; + $test = "» ".FNEWVILLAGE." ($cps/$need_cps ".CULTUREPOINT.")"; } elseif(!$village->resarray['f39']) { - $test = "» Found new village. (build a rally point)"; - } else { - $test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)"; - } + $test = "» ".FNEWVILLAGE." (".BUILDRALLY.")"; + } else { + $test = "» ".FNEWVILLAGE." (".$village->unitarray['u'.$session->tribe.'0']."/3 ".SETTLERSAVAIL.")"; + } - echo ($basearray['fieldtype']==0)? + echo ($basearray['fieldtype']==0)? ($village->resarray['f39']==0)? ($basearray['owner'] == $session->uid)? - - - "» Raid $otext oasis. (build a rally point)" : - "» Raid $otext oasis. (build a rally point)" : - - - "» Raid $otext." : + + "» ".RAID." $otext ".OASIS." (".BUILDRALLY.")" : + "» ".RAID." $otext ".OASIS." (".BUILDRALLY.")" : + "» ".RAID." $otext" : "$test" - ?> + ?>
getTypeLevel(17)? "getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)"; + echo $building->getTypeLevel(17)? "getTypeField(17) . "\">» ".SENDMERC : "» ".SENDMERC ."(".BUILDMARKET.")"; } ?> @@ -549,4 +518,4 @@ if($type==18 or $type==19 or $type==20 or $type==21){
- + \ No newline at end of file