Admin Admin
Mesaje : 46 Data nasterii : 09/05/1994 Data de inscriere : 13/07/2010 Varsta : 30 Localizare : Romania Joburi/Distractii : Forum Stare de spirit : Buna
| Subiect: Cum sa traduci evenimentele Cum Joi Iul 15, 2010 6:07 am | |
| *In acest tutorial va voi arata cum sa traduceti evenimentele (Tribul a fost infiintat de .... , Cutare a fost concediat de , etc ) Intrati in game_ally_in_ally_overview.tpl , din htdocs/templates , si stergeti urmatorul cod : - Cod:
-
<td>{$arr.message}</td> In loc de ce e mai sus , introduceti asta: - Cod:
-
<td>{php} $text_f = $this->_tpl_vars['arr']['message']; $text_f = str_replace("Der Stamm wurde von","Tribul a fost intemeiat de",$text_f); $text_f = str_replace(" gegründet","",$text_f); $text_f = str_replace("ist dem Stamm beigetreten","s-a alaturat tribului",$text_f); $text_f = str_replace("hat den Stamm verlassen.","a parasit tribul.",$text_f); $text_f = str_replace("hat die Einladung abgelehnt.","a refuzat invitatia.",$text_f); $text_f = str_replace("hat die interne Ankündigung geändert","a modificat anuntul intern",$text_f); $text_f = str_replace("hat die Stammesbeschreibung geändert","a modificat descrierea tribului",$text_f); if(preg_match('/eingeladen/', $text_f)) { $text_f = str_replace("wurde von","a fost invitat de catre",$text_f); $text_f = str_replace(" eingeladen","",$text_f); } if(preg_match('/entlassen/', $text_f)) { $text_f = str_replace("wurde von","a fost concediat de catre",$text_f); $text_f = str_replace(" entlassen","",$text_f); } if(preg_match('/Die Einladung an/', $text_f)) { $text_f = str_replace("Die Einladung an","Invitatia pentru",$text_f); $text_f = str_replace("wurde von","a fost retrasa de catre",$text_f); $text_f = str_replace(" zurückgezogen","",$text_f); }
echo $text_f; //{$arr.message} {/php}</td> | |
|