Cake has a wonderful shell script function built into it called extract that will run through your code and create a .po file full of all of the text contained within your __('My text here') calls. You can then pass these files onto to translators to modify them for your languages. When you want to add variables though, you have to break it up into pieces which may change the context of the phrase. Here's a way around that.
Archivio per 20 giugno 2009 |
Come puoi apprezzare la felicità, senza sapere che cos'è la tristezza ? Come puoi raggiungere la saggezza, senza affrontare le tue paure ? Alla fine, la grande sfida della vita consiste nel superare i nostri limiti, spingendoci verso luoghi in cui mai avremmo immaginato di poter arrivare. tratto da Il Delfino - Sergio Bambarén
|
|||||||||||||||||||||||||||||||||||||||||||||||||