Forums / Developer / Multi-lingual site images
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/imagesetc.
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
Thursday 06 November 2003 5:20:41 am
Any one for eZ want to explain how the fast site was done?
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 Exponential 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
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"} ?
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]
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.
tiatony
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-JPContentObjectLocale=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.
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=esStandardDesign=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