Tuesday 27 June 2006 7:38:09 am
hi. i have a "problem" with i18n operator. i have two siteaccess. one is for french and the other one is for english. In my settings/siteaccess/french/site.ini.append.php i have
[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=eng-GB
...
while in my settings/settings/spanish/site.ini.append.php i have
[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
Now i have modified translations.ts file. In share/translations/fre-FR/translations.ts i've added
<context>
<name>menu</name>
<message>
<source>Home</source>
<translation>Accueil</translation>
</message>
</context>
share/translations/esl-ES/translations.ts i've added
<context>
<name>menu</name>
<message>
<source>Home</source>
<translation>Inicio</translation>
</message>
</context>
Now i have a template file. In that file i have
{'Home'|i18n('menu')}
But the problem is I always get spanish translation of that string. Even if i am in the french siteaccess... Btw, spanish is the main language of the site... What can be wrong? Thanks.
|