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

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

eZ debug

Timing: Jan 18 2025 02:08:52
Script start
Timing: Jan 18 2025 02:08:52
Module start 'layout'
Timing: Jan 18 2025 02:08:52
Module start 'content'
Timing: Jan 18 2025 02:08:52
Module end 'content'
Timing: Jan 18 2025 02:08:52
Script end

Main resources:

Total runtime0.6301 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.7891152.6094
Module start 'layout' 0.00640.0033 740.398439.4141
Module start 'content' 0.00980.6190 779.8125529.5703
Module end 'content' 0.62880.0013 1,309.382812.1875
Script end 0.6301  1,321.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5188160.0002
Check MTime0.00130.2061160.0001
Mysql Total
Database connection0.00060.092510.0006
Mysqli_queries0.562689.2794630.0089
Looping result0.00080.1250610.0000
Template Total0.598194.920.2990
Template load0.00210.326620.0010
Template processing0.596094.581420.2980
Template load and register function0.00020.027810.0002
states
state_id_array0.00100.155810.0010
state_identifier_array0.00100.153320.0005
Override
Cache load0.00200.3188640.0000
Sytem overhead
Fetch class attribute can translate value0.00070.117120.0004
Fetch class attribute name0.00110.178960.0002
XML
Image XML parsing0.00070.112320.0004
class_abstraction
Instantiating content class attribute0.00000.002470.0000
General
dbfile0.00090.1491160.0001
String conversion0.00000.002040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs