i18n

Author Message

Carlos Revillo

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.

Kristof Coomans

Tuesday 04 July 2006 3:18:14 am

Hello Carlos

Do you have <i>Locale=esl-ES</i> in settings/override/site.ini.append(.php) ?
Also try to clear all caches.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Carlos Revillo

Wednesday 05 July 2006 1:56:03 am

Yes. That was. I deleted that from my settings/override/site.ini.append.php and worked. thanks so much.

Kristof Coomans

Wednesday 05 July 2006 3:53:47 am

The locale setting in the global site.ini override has been reported as a bug: http://ez.no/bugs/view/8605

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nicolas Ottavi

Thursday 06 July 2006 5:33:08 am

<b>[EDIT: Resolved, the problem was coming from my translation.ts file :( ]</b>

Hi I have the same problem. But I've nothing in the override/site.ini.append.php file concerning the translation.

The site is in 2 languages: French and English, french is the main language.

Here is the french/site.ini.append.php:

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
SiteLanguageList[]=fre-FR
TextTranslation=enabled
...
[ContentSettings]
TranslationList=eng-GB

And the english/site.ini.append.php

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
SiteLanguageList[]=eng-GB
SiteLanguageList[]=fre-FR
TextTranslation=enabled
...
[ContentSettings]
TranslationList=fre-FR

Thanks for your help,
Nicolas

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.