Just have two versions of the image, say, flag.gif for the default and
flag_es.gif for Spanish etc. Define it as 

<asset name="flag" path="context:/images/flag.gif"/>

Tapestry will pick the correct localized image automatically.

-----Original Message-----
From: Malin Ljungh [mailto:[EMAIL PROTECTED] 
Sent: 20 June 2007 10:19
To: Tapestry users
Subject: T4: Localization of image assets


This seems like the easiest example but I just can't find any
documention of how to do it.

I have a localized Tapestry 4 app. Localization of text (messages) works
great! But - how do I handle the images?

I have @Image components and <asset>s but how do I get them to
automatically select the right image depending of the current locale?

I'd be truly greatful I you help me :)
Malin

------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to