Translation Issue...

Author Message

Carlos Revillo

Monday 19 June 2006 3:48:45 am

Hi. Now i've got three siteaccess in my site. One is for french language.

Regionalsites in site.ini.append of this siteacces looks like

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
SiteLanguageList[]=fre-FR
SiteLanguageList[]=eng-GB
SiteLanguageList[]=esl-ES

I've developen an extension, and i added french templates to it. One of the templates has this line...

{$date|datetime(custom,"%l, %d %F %Y")}

I want day and month name in French, but i "get spanish version" of those names... what can be wrong?

thanks.

Kristof Coomans

Monday 19 June 2006 4:45:03 am

Hi Carlos

Use the l10n template operator ( http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/formatting_and_internationalization/l10n ) instead of datetime.

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

Carlos Revillo

Monday 19 June 2006 6:36:02 am

Thanks Kristof, but still don't work. I'm still getting spanish version...

Carlos Revillo

Monday 19 June 2006 6:40:38 am

Forget it. I forgot to pass second parameter to the function. All is ok now. Thanks so much again.

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 19 2025 00:11:08
Script start
Timing: Jan 19 2025 00:11:08
Module start 'layout'
Timing: Jan 19 2025 00:11:08
Module start 'content'
Timing: Jan 19 2025 00:11:09
Module end 'content'
Timing: Jan 19 2025 00:11:09
Script end

Main resources:

Total runtime1.0368 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7891152.6094
Module start 'layout' 0.00570.0030 740.398439.4141
Module start 'content' 0.00871.0267 779.8125540.4766
Module end 'content' 1.03540.0014 1,320.289112.1875
Script end 1.0368  1,332.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3723160.0002
Check MTime0.00180.1780160.0001
Mysql Total
Database connection0.00080.074010.0008
Mysqli_queries0.984394.9293600.0164
Looping result0.00060.0611580.0000
Template Total0.994795.920.4974
Template load0.00230.225420.0012
Template processing0.992495.711620.4962
Template load and register function0.00020.023610.0002
states
state_id_array0.00160.158510.0016
state_identifier_array0.00160.158620.0008
Override
Cache load0.00190.1880180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.081820.0004
Fetch class attribute name0.00130.129650.0003
XML
Image XML parsing0.00070.064120.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00180.1729160.0001
String conversion0.00000.000740.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs