AdrYaN Administrator
Sex : Localizare : Italia,Milano Data de inscriere : 21/11/2010 Data nasteri : 25/10/1995 Stare de spirit : Fericit! Joburi/Distractii : Fotbal,Pc Si Multe Altele Varsta : 28
| Subiect: Traducere anuntul intern la trib Joi Dec 02, 2010 3:13 pm | |
| Bun in acest tutorial invatam cum sa traduceti anuntul intern la trib.Peste cateva zile voi face un tutorial si pentru anuntul de la Insusiri.
1. Intrati in DsLan/htdocs/templates/game_ally_in_ally_overview.tpl si cautati asta cu CTRL+F :
- Cod:
-
<form action="game.php?village={$village.id}&screen=ally&action=edit_intern&h={$hkey}" method="post" name="edit_profile"> <table class="vis" width="100%"> <tr><th colspan="2" width="100%">Anuntul intern al tribului</th></tr> <tr id="show_row" align="center"><td colspan="2">{php} echo bb_format($this->_tpl_vars['ally']['intern_text']); {/php}</td></tr> {if $user.ally_found==1} <tr id="edit_row"><td colspan="2"><textarea name="intern" cols="40" rows="15">{$ally.edit_intern_text}</textarea></td></tr> <tr id="submit_row"><td><input type="submit" name="edit" value="Memorare" /> <input type="submit" name="preview" value="Privire de control" /></td></tr> {/if} </table> </form> 2. Dupa ce ati gasito o stergeti si o inlocuiti cu urmatoarea :
- Cod:
-
<form action="game.php?village={$village.id}&screen=ally&action=edit_intern&h={$hkey}" method="post" name="edit_profile"> <table class="vis" width="100%"> <tr><th colspan="2" width="100%">Anuntul intern al tribului</th></tr> <tr id="show_row" align="center"><td colspan="2">{php} $text_f = bb_format($this->_tpl_vars['ally']['intern_text']); $text_f = str_replace("Wendet euch bei Fragen an","Daca aveti intrebari adresati-le lui",$text_f); $text_f = str_replace("Dieser Text kann von der Stammesführung geändert werden","<i>Acest mesaj poate fi modificat de catre conducatori tribului</i>",$text_f); echo $text_f;
// echo bb_format($this->_tpl_vars['ally']['intern_text'])
{/php}</td></tr> {if $user.ally_found==1} <tr id="edit_row"><td colspan="2">{php} $text_f = bb_format($this->_tpl_vars['ally']['edit_intern_text']); $text_f = str_replace("Wendet euch bei Fragen an","Daca aveti intrebari adresati-le lui",$text_f); $text_f = str_replace("Dieser Text kann von der Stammesführung geändert werden","Acest mesaj poate fi modificat de catre conducatori tribului",$text_f); echo $text_f;
// echo {$ally.edit_intern_text}
{/php}</textarea></td></tr> <tr id="submit_row"><td><input type="submit" name="edit" value="Save" /> <input type="submit" name="preview" value="Privire de Control" /></td></tr> {/if} </table> </form>
Si cam asta a fost tot nui greu nu? Succes -> 4Fun! | |
|