Monday 01 February 2010 8:50:16 am
Hello, For me, the translation from English to French using the above solution didn't work. Maybe have I missed or misunderstood something in the above explanation. So here is what I did. First of all, I must precise that I didn't use the Greater/lower signs. I used the double quotes instead. In my template I put this : <code>
<div class="feedback">
<h2>{"Search for \"%1\" returned %2 matches"|i18n("presse/content/search",,array($search_text|wash,$search_count))}</h2>
</div> </code> And in my translation.ts file I put in the right section (for me, in the "presse/content/search" section) the following : <code>
<message>
<source>Search for "%1" returned %2 matches</source>
<translation>La recherche de "%1" a retourné %2 résultats</translation> </message> </code> The displayed result on my page when I switch to French is : La recherche de "mon texte" a retourné 7 résultats The displayed result on my page when I switch to English is : Search for "mon texte" returned 7 matches If it can help :) Cheers!
|