Multi-lingual site images

Author Message

Tony Wood

Friday 24 October 2003 8:45:10 am

Hi,

I was looking through the eZ example site www.fast.no and i notice that the images for each language are sotred in their own directory

/design/ita/images
/design/jpn/images
etc.

Is their a comment to refernce this from within templates? How can you make {"aboutus.gif"|ezimage} select the ita or jpn folder?

tia

tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Thursday 06 November 2003 5:20:41 am

Any one for eZ want to explain how the fast site was done?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Ole Morten Halvorsen

Thursday 06 November 2003 5:45:11 am

I'll try to give a quick overview on how the multilingual part of the fast site was done.

design structure:
design/
[...]
-- fast/
-- -- images/
-- -- templates/
-- -- override/
-- en/
-- -- images/
-- pt/
-- -- images/
-- jp/
-- -- images/
[...]

Each siteaccess uses it own design. Jp siteaccess uses jp design, pt uses pt design and so on...

Each design has images for it own language.
In site.ini.append AditionalSiteDesignList[] is set to 'fast' so when eZ publish doesnt find a template/image it will fallback on the fast design before falling back on standard.

Entering http://fast.no/jp (japaneese siteacces), images will be taken from design/jp/images because the design defined for the jp siteaccess is jp, but templates will be fetched from design/fast/ since there is no templates for the jp design. Images must of course have the same filename for this to work.

-Ole

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Tony Wood

Thursday 06 November 2003 6:58:24 am

aha! :) Thank you.. that explains a lot.

Does the same follow for {include uri="design:myinclude.tpl"} ?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Friday 07 November 2003 8:47:41 am

Ole,

Can you please supply the siteaccess/xx/site.ini.append settings for the jp translation for

[DesignSettings]

and

[RegionalSettings]

And for the override sint.ini.append.php
[DesignSettings]

and

[RegionalSettings]

So I can see the way you have this setup, as i have tried all combinations and the {"aboutus.gif"|ezimage} does not look in the other image location first.

tia
tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Ole Morten Halvorsen

Friday 07 November 2003 9:00:22 am

Tony,

settings/override/site.ini.append:
[DesignSettings]
AditionalSiteDesignList[]=fast

# No Regional settings in this file..

settings/siteaccess/jp/site.ini.append:
[DesignSettings]
SiteDesign=jpn

[RegionalSettings]
Locale=jpn-JP
ContentObjectLocale=jpn-JP

---

Remember to have the correct .ini file in share/locale as well if you are adding non-standard language. For the japaneese languange, share/locale/jpn-JP.ini must exist.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Tony Wood

Friday 07 November 2003 9:30:29 am

Hi Ole,

I have the same settings, except its in Spanish so.

in the siteaccess es in settings/siteaccess/es

[DesignSettings]
SiteDesign=es
StandardDesign=standard

[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
HTTPLocale=es
Debug=enabled
ContentXMLCharset=disabled
TextTranslation=enabled
TranslationCache=disabled
TranslationRepository=share/translations/
TranslationExtensions[]
DevelopmentMode=disabled

in the site.ini.append in override

[DesignSettings]
AdditionalSiteDesignList[]=user

'user' being the default site design.

I have read all the documentation and have experimented but still no luck. any advice?
I am running ez 3.2-3

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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 22:39:38
Script start
Timing: Jan 18 2025 22:39:38
Module start 'layout'
Timing: Jan 18 2025 22:39:38
Module start 'content'
Timing: Jan 18 2025 22:39:39
Module end 'content'
Timing: Jan 18 2025 22:39:39
Script end

Main resources:

Total runtime0.6443 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.9141152.6250
Module start 'layout' 0.00480.0035 740.539139.4453
Module start 'content' 0.00840.6345 779.9844605.7891
Module end 'content' 0.64290.0014 1,385.773420.1641
Script end 0.6443  1,405.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5051160.0002
Check MTime0.00140.2237160.0001
Mysql Total
Database connection0.00060.093710.0006
Mysqli_queries0.567588.0865690.0082
Looping result0.00060.0864670.0000
Template Total0.616095.620.3080
Template load0.00220.339520.0011
Template processing0.613895.267620.3069
Template load and register function0.00010.011510.0001
states
state_id_array0.00100.155410.0010
state_identifier_array0.00080.117720.0004
Override
Cache load0.00210.3198940.0000
Sytem overhead
Fetch class attribute can translate value0.00090.145720.0005
Fetch class attribute name0.00080.127880.0001
XML
Image XML parsing0.00040.061920.0002
class_abstraction
Instantiating content class attribute0.00000.0048120.0000
General
dbfile0.00080.1185160.0000
String conversion0.00000.004840.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
12content/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: 45
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs