This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » General » i18n does not work
expandshrink

i18n does not work

i18n does not work

Thursday 16 September 2010 5:29:51 pm - 4 replies

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

Thursday 16 September 2010 6:02:18 pm

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)?

Thursday 16 September 2010 6:14:36 pm

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?

Modified on Thursday 16 September 2010 6:25:01 pm by MANUELE ARENGHI

Thursday 16 September 2010 6:27:58 pm

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?

Friday 17 September 2010 8:47:44 am

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from