Translate Custome Datatype class attribute

Author Message

Jitesh Rana

Monday 22 August 2011 4:12:28 am

Hi all,

How to translate custom datatye class attribute?

I have a class with following attribute

1. id(oscar_identifier) *custom datatype

2. label(ezstring)

anybody know how to achieve this?

Thanks

André R.

Tuesday 23 August 2011 6:04:42 am

What do you mean with "How to translate custom datatye class attribute?"

Are you talking about the default string for the datatype?
If so it is not supported out of the box, datatypes will need to use serialized_data_text ( see also helper attributes: data_text_i18n & data_text_i18n_list )
I think this was added in 4.4.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 17 2025 23:46:31
Script start
Timing: Jan 17 2025 23:46:31
Module start 'layout'
Timing: Jan 17 2025 23:46:31
Module start 'content'
Timing: Jan 17 2025 23:46:32
Module end 'content'
Timing: Jan 17 2025 23:46:32
Script end

Main resources:

Total runtime0.6571 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.0046 588.0469152.6406
Module start 'layout' 0.00460.0032 740.687539.4844
Module start 'content' 0.00780.6478 780.1719523.5078
Module end 'content' 0.65560.0015 1,303.67978.2813
Script end 0.6571  1,311.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4526160.0002
Check MTime0.00130.1907160.0001
Mysql Total
Database connection0.00060.089810.0006
Mysqli_queries0.613993.4270540.0114
Looping result0.00050.0788520.0000
Template Total0.631596.120.3158
Template load0.00200.307820.0010
Template processing0.629595.790320.3147
Template load and register function0.00020.030710.0002
states
state_id_array0.00100.147310.0010
state_identifier_array0.00070.104120.0003
Override
Cache load0.00170.2529160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.112020.0004
Fetch class attribute name0.00110.160530.0004
XML
Image XML parsing0.00070.103920.0003
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00080.1240170.0000
String conversion0.00000.001540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs