Translating section name

Author Message

J-A Eberhard

Tuesday 11 April 2006 1:16:55 pm

I have a multilingual portal with many sections and would like to show the name of the section a keyword related object belongs too.
I thought about having an array with the translated section name for each language and fetching the correct name using the {$section[$:item.object.section_id]}
Does anybody have a better solution?
Thanks

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

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 04:21:20
Script start
Timing: Jan 19 2025 04:21:20
Module start 'layout'
Timing: Jan 19 2025 04:21:20
Module start 'content'
Timing: Jan 19 2025 04:21:22
Module end 'content'
Timing: Jan 19 2025 04:21:22
Script end

Main resources:

Total runtime1.2711 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1563152.6250
Module start 'layout' 0.00480.0029 741.781339.4453
Module start 'content' 0.00771.2621 781.2266463.6484
Module end 'content' 1.26980.0013 1,244.87508.1641
Script end 1.2711  1,253.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2271160.0002
Check MTime0.00120.0950160.0001
Mysql Total
Database connection0.00070.053310.0007
Mysqli_queries1.235297.1726460.0269
Looping result0.00050.0429440.0000
Template Total1.237497.420.6187
Template load0.00180.140720.0009
Template processing1.235697.209120.6178
Template load and register function0.00010.007510.0001
states
state_id_array0.00210.167210.0021
state_identifier_array0.00130.105720.0007
Override
Cache load0.00140.113080.0002
Sytem overhead
Fetch class attribute can translate value0.00060.047410.0006
Fetch class attribute name0.00090.072420.0005
XML
Image XML parsing0.00040.033310.0004
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00070.0565150.0000
String conversion0.00000.000640.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs