Forums / Developer / Multi-lingual site images

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

eZ debug

Timing: Jan 31 2025 04:19:29
Script start
Timing: Jan 31 2025 04:19:29
Module start 'content'
Timing: Jan 31 2025 04:19:29
Module end 'content'
Timing: Jan 31 2025 04:19:29
Script end

Main resources:

Total runtime0.0167 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 587.9297180.8359
Module start 'content' 0.00810.0049 768.7656105.8672
Module end 'content' 0.01300.0037 874.632882.7031
Script end 0.0167  957.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002313.5630120.0002
Check MTime0.00105.8258120.0001
Mysql Total
Database connection0.00084.896410.0008
Mysqli_queries0.004124.506140.0010
Looping result0.00000.096920.0000
Template Total0.003420.210.0034
Template load0.00074.197910.0007
Template processing0.002715.974910.0027
Override
Cache load0.00053.007710.0005
General
dbfile0.00031.7747100.0000
String conversion0.00000.042830.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs