Re: [Zope3-Users] i18n of an image

2005-10-28 Thread Chris Withers

Andreas Jung wrote:
i18n:attributes just replaces the attributes with content from the 
catalog file.



How can change an image depend on the user location?


how about i18n:attributes=src python: test(your_condition, 'someurl1', 
'someurl2') ?


I tend to create a folder of the image name, with actual images called, 
for example, 'en' 'fr' 'de', etc and then have an index_html python 
script aquirable from fromwhere that picks the right image, falls back 
to a default if one isn't available, and renders it. This also means you 
can juse use normal image tags...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] i18n of an image

2005-10-27 Thread Leticia Larrosa
Hi:

I want to show an image depends on the localization of the final user.

I dizzy try with: 

input name=In type=image value=In i18n:attributes=src
Refresh-Button 


In my .po files I have:

msgid Refresh-Button
msgstr context/++resource++images/BtnRefreshEn.gif

and

msgid Refresh-Button
msgstr context/++resource++images/BtnRefresh.gif

for to diferents localizations.

When I get the page I don't get the imagen. The final HTML for user is:

input name=In type=image
value=In
src=context/++resource++images/BtnRefreshEn.gif

Instead of:

input name=In type=image
value=In 
src=http://localhost:8080/@@/images/BtnRefresh.gif;



How can change an image depend on the user location?

Thanks in advance.
Leticia




___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users