[Multi-Lingual] Label definition in relation to the langage

Author Message

Sébastien Morel

Tuesday 12 September 2006 8:49:03 am

Hello,

I try to define a different label for a datatype of a class ?

How can I assign differents labels according to the langage in the admin interface.

For instance, When I configure a "selection" datatype, is it possible to define the label of an option according to the language ?
Or, when I configure the name of an attribute, is it possible to define a diffirent name per langages ?

Thanks
Séb

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Thursday 14 September 2006 5:38:34 am

Anyone ?

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

J-A Eberhard

Thursday 14 September 2006 6:17:17 am

Hi,

For a selection datatype, I think you can do it through the content tab.

For the name of an attribute, I think it's not possible in 3.8.x, but I heard it will be in 3.9.x

Currently I'm using the id of the attribute and set the correct value in the translation.ts file.
For exemple, in edit pages I have

 {$attributes.item.contentclass_attribute.id|i18n( 'design/special' )}

this.

Hope it helps.

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 18 2025 20:57:46
Script start
Timing: Jan 18 2025 20:57:46
Module start 'layout'
Timing: Jan 18 2025 20:57:46
Module start 'content'
Timing: Jan 18 2025 20:57:47
Module end 'content'
Timing: Jan 18 2025 20:57:47
Script end

Main resources:

Total runtime1.4587 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.3047152.6563
Module start 'layout' 0.00770.0027 741.960939.5078
Module start 'content' 0.01031.4468 781.4688546.0938
Module end 'content' 1.45720.0014 1,327.562512.0938
Script end 1.4586  1,339.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2102160.0002
Check MTime0.00130.0874160.0001
Mysql Total
Database connection0.00080.054610.0008
Mysqli_queries1.403096.1826570.0246
Looping result0.00060.0417550.0000
Template Total1.415697.120.7078
Template load0.00190.128820.0009
Template processing1.413896.921420.7069
Template load and register function0.00010.009210.0001
states
state_id_array0.00230.156510.0023
state_identifier_array0.00230.155820.0011
Override
Cache load0.00150.1026240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.042220.0003
Fetch class attribute name0.00140.098950.0003
XML
Image XML parsing0.00200.139720.0010
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00280.1924210.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs