Forums / Setup & design / Images and Translation

Images and Translation

Author Message

Golvier Jean

Thursday 29 April 2004 3:45:48 am

Hello,

I've done a "news" site with two languages (english and french). I can see all of them without problem.

My question is about images because some texte are included into images. So how could I do to change images when I switch between languages ? Is there a way to know which is the current language in the template ? do I have to make two differents design repertories ?

I'm a newbie so maybe it's not the better method, all advices are welcome.

Thanks,

Jean

eZ debug

Timing: Jan 19 2025 13:53:59
Script start
Timing: Jan 19 2025 13:53:59
Module start 'content'
Timing: Jan 19 2025 13:53:59
Module end 'content'
Timing: Jan 19 2025 13:53:59
Script end

Main resources:

Total runtime0.5234 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 590.0781180.8438
Module start 'content' 0.00700.5103 770.9219403.5859
Module end 'content' 0.51730.0060 1,174.507838.1172
Script end 0.5233  1,212.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.5570140.0002
Check MTime0.00120.2318140.0001
Mysql Total
Database connection0.00110.211710.0011
Mysqli_queries0.489793.5706470.0104
Looping result0.00040.0821450.0000
Template Total0.496294.820.2481
Template load0.00200.386720.0010
Template processing0.494194.412920.2471
Template load and register function0.00010.021010.0001
states
state_id_array0.00090.175410.0009
state_identifier_array0.00070.130120.0003
Override
Cache load0.00170.319590.0002
Sytem overhead
Fetch class attribute can translate value0.00070.129010.0007
Fetch class attribute name0.00050.093710.0005
XML
Image XML parsing0.00010.018310.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00320.6206120.0003
String conversion0.00000.001630.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs