translating ezselection

Author Message

Vjeran Vlahovic

Tuesday 22 August 2006 11:04:45 am

I am running multilanguage website and I have an ezselection attribute of an employee class which contains job title values. I want somehow to show translation of chosen value. Any advices how to that?

http://www.netgen.hr/eng

Marcin Drozd

Tuesday 22 August 2006 11:48:48 am

Hi
U can change (in /content/datatype/view/ezelection.tpl)
from
{$Options.item.name|wash( xhtml )}
to
{$Options.item.name|i18n('mytranslation')|wash( xhtml )}
and create translation extension (see http://ez.no/community/forum/setup_design/multilingual_static_texts_how_to_reuse_and_customise
Lukasz post: 2. Create translation extension)

http://ez-publish.pl

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 15:13:07
Script start
Timing: Jan 18 2025 15:13:07
Module start 'layout'
Timing: Jan 18 2025 15:13:07
Module start 'content'
Timing: Jan 18 2025 15:13:09
Module end 'content'
Timing: Jan 18 2025 15:13:09
Script end

Main resources:

Total runtime1.5715 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 587.9063152.6250
Module start 'layout' 0.00450.0024 740.531339.4453
Module start 'content' 0.00691.5630 779.9766519.1563
Module end 'content' 1.56990.0015 1,299.13288.1719
Script end 1.5714  1,307.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.1966160.0002
Check MTime0.00130.0827160.0001
Mysql Total
Database connection0.00070.041810.0007
Mysqli_queries1.530497.3885540.0283
Looping result0.00070.0455520.0000
Template Total1.543098.220.7715
Template load0.00200.125320.0010
Template processing1.541198.065320.7705
Template load and register function0.00010.006910.0001
states
state_id_array0.00100.064310.0010
state_identifier_array0.00250.157220.0012
Override
Cache load0.00160.1048140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.044520.0003
Fetch class attribute name0.00160.100530.0005
XML
Image XML parsing0.00070.043620.0003
class_abstraction
Instantiating content class attribute0.00000.000430.0000
General
dbfile0.00070.0477170.0000
String conversion0.00000.000540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs