Share » Forums » Developer » Multi-lingual site images

Multi-lingual site images

Multi-lingual site images

Friday 24 October 2003 8:45:10 am - 6 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu