Saturday 12 August 2006 1:59:57 am
Please, excuse me the lenght of message, but I'm exasperate with i18n I try build a multilingual site and I need translate some static (hard coded) text on template. I follow instructions on http://ez.no/community/forum/setup_design/multilingual_static_texts_how_to_reuse_and_customise but I get nothing. I've created the extension:
ezpublishroot
|
|-- extension
|
|-- StaticText
|
|- settings
| |
| |- site.ini.append.php
|
|- translations
|- esl-ES
| |
| |- translation.ts
|
|- untranslated
|
|- translation.ts
I've activated the extension in settings/override/site.ini.append.php:
[ExtensionSettings]
ActiveExtensions[]=ezdhtml
ActiveExtensions[]=StaticText
I've create my own "translation.ts" file under esl-ES with this content:
<!DOCTYPE TS><TS>
<context>
<name>huntingservices/monterias</name>
...
<message>
<source>make reservation</source>
<translation>efectuar reserva</translation>
</message>
...
</context>
</TS>
On template, I have:
<input type="image" src={"reservar.gif"|ezimage} alt={'make reservation'|i18n('huntingservices/monterias')} title={'make reservation'|i18n('huntingservices/monterias')} width="24" height="24" name="ActionAddToBasket" />
With these settings I don't get translated text and, also, I only get the first word (i.e: I only get "make" ). If I copy content of <i>extension/StaticText/translations/esl-ES/translation.ts</i> on <i>share/translations/esl-ES/translation.ts</i> then, it work, but I only get first word: In english site the hint of image show "make" and in spanish site show "efectuar". What is wrong?
regards Adolfo Barragán
|