[Zope3-Users] i18n of an image

Leticia Larrosa leticia at tesla.cujae.edu.cu
Thu Oct 27 14:43:01 EDT 2005


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






More information about the Zope3-users mailing list