Wednesday 07 November 2007 12:51:44 am
Hello.
We installed the ezsearch extension. We override its templates. Some of the translation work, some doesn't. Now I see there is a general translation.ts inside the folder /share/translations/ita-IT/, as well as a file that is specific to the extension, that is in the folder /extensions/ezfind/translations/ita-IT. I am quite sure the general translation file is used, and if I try a "static" translation (with no parameters), such as <p>{"Last month"|i18n('design/standard/content/search')}</p> it works, and I got the italian text But if I try a "dynamic" one such as <p>{'No results were found when searching for <%1>'|i18n('design/standard/content/search','',array($search_text|wash))}</p> then it doesn't work, and all I got is the english text with the parameter value correctly substituted with the value passed to the function ($search_text).
In the translation.ts file (under /share/translations/ita-IT/) I have the correct context and (it seems to me) the correct message:
<context>
<name>design/admin/content/search</name>
...
...
<message>
<source>No results were found when searching for <%1></source>
<translation>Cercando <%1> non è stato trovato nessun risultato</translation>
</message>
...
... </context>
So what do I do wrong? What can be the problem blocking the translation?
Thank you very much, Mirko.
|