Forums / General / i18n does not work

i18n does not work

Author Message

MANUELE ARENGHI

Thursday 16 September 2010 8:29:51 am

Hello,

I needhelp about the following issue:

SITUATION:

-------------------------------------------------------------------------------------

EzPublish 4.3.0

php5.3.0

In settings/override/site.ini.append I've:

[RegionalSettings]
Locale=ita-IT
ContentObjectLocale=ita-IT
TextTranslation=enabled
TranslationCache=enabled

In settings/siteaccess/myapp/site.ini.append

[RegionalSettings]
Locale=ita-IT
ContentObjectLocale=ita-IT
TextTranslation=enabled
SiteLanguageList[]
SiteLanguageList[]=ita-IT
ShowUntranslatedObjects=disabled

-------------------------------------------------------------------------------------

THE PROBLEM:

In my templates(design/myapp/override/templates) I have

{'Confirm'|i18n('design/standard/content/edit')}"

BUT the translation does not work:

-I've already purged the cache

-I've already checked that in share/locale there is the file ita-IT.ini

-I've already checked that in share/translations/ita-IT/translation.ts is present the context "design/standard/content/edit" and the message "Confirm"

-------------------------------------------------------

Can anyone suggest what could be the problem and what I can do to solve it?

-------------------------------------------------------

Thankyou

Gabriel Finkelstein

Thursday 16 September 2010 9:02:18 am

Is it not working only for that phrase, or it's not working anywhere? Have you tried clearing cache manually (running "php bin/php/ezcache.php --clear-all", or deleting the cache folder)?

MANUELE ARENGHI

Thursday 16 September 2010 9:14:36 am

It is not working anywhere .The result shown in browser is "Confirm"

....If I type {'Edit'|i18n('design/standard/content/edit')}" the result is "Edit"

I've purged the cache removing the following folders:

-var/cache

-var/myapp/cache

Now I've tried also with

php bin/php/ezcache.php --clear-all --allow-root-user
but the problem still persists

Any idea?

Gabriel Finkelstein

Thursday 16 September 2010 9:27:58 am

Mmmm...

Make sure that the translation.ts file is in utf8.

Is it a clean install?

Make also sure that you have an ita-IT.ini file in share/locale.

Have you tried with another language?

MANUELE ARENGHI

Thursday 16 September 2010 11:47:44 pm

Great!!

The problem is solved:

The translation.ts started with:

<?xml version="1.0" encoding=""?>

I modified in

<?xml version="1.0" encoding="utf-8"?>

Now the translation work

THANK YOU