Right now I have created an images directory and an es, ru, etc..
directories under images to house all of my i18n images.
To reference them I have placed another key in the
ApplicationResouces.properties files called countrycode
I then find the image with src=imagesbean:message
key=countrycode
for internationalization, so I can't speak to *the*
solution - I think what I propose is reasonable though.
Jeff Born wrote:
Right now I have created an images directory and an es, ru, etc..
directories under images to house all of my i18n images.
To reference them I have placed another key
for native2ascii? Any suggestions?
Thanks,
jb
-Original Message-
From: Eddie Bush [mailto:ekbush;swbell.net]
Sent: 17 îêòÿáðÿ 2002 ã. 14:32
To: Struts Users Mailing List
Subject: Re: i18n and images
You could just list all of the images in the properties file - instead
of just having
I'm sorry that yesterday I sent a bit confusing question. Todya I reask it in more
precise form:-)
Is there any way to store image related info into a property file and hardcode not an
image location but its alias from this file? I think smth. should exist for this
purpose.
--
To
being there is nothing in Struts like this?
-Original Message-
From: Elizabeth Barham [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:13
To: Roman Rytov
Subject: Re: i18n and images?
[ Not on the struts-user mailing list because this message does not
directly relate to struts
Hi,
If I understand your question properly, keep all images of application in a
dir
and write these images names in properties file(i18n_*.properties)
with key names and in jsp page call that key name.
Example.
suppose you need to display an image (x1.gif) for en locale
and other image(x2.gif)
=bean:message
key='alt.sampleImage'/
But I agree it's better than nothing.
-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:47
To: Struts Users Mailing List
Subject: RE: i18n and images?
Hi,
If I understand your question properly, keep all images
=bean:message
key='alt.sampleImage'/
But I agree it's better than nothing.
-Original Message-
From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:47
To: Struts Users Mailing List
Subject: RE: i18n and images?
Hi,
If I understand your question properly, keep all
Subject: RE: i18n and images?
I agree that this is a solution. But don't forget I need to
store also tips (alt's attribute values) for every image
hence I need a second file. Two drawbacks arose:
synchronization between files is up to me and the code becomes ugly:
img src=images
Wow! Finally one pointed me at what I was asking for:-)) Thanks!
-Original Message-
From: Kristopher Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 12:03
To: Struts Users Mailing List
Subject: RE: i18n and images?
Hope I'm not missing the point, but I think the standard
or pageKey attribute.
-Original Message-
From: Roman Rytov [mailto:[EMAIL PROTECTED]]
Sent: 10 June 2002 09:56
To: Struts Users Mailing List
Subject: RE: i18n and images?
I agree that this is a solution. But don't forget I need to
store also tips (alt's attribute values) for every
think the standard struts html:img
tag covers this already with the altKey attribute and the srcKey or
pageKey attribute.
-Original Message-
From: Roman Rytov [mailto:[EMAIL PROTECTED]]
Sent: 10 June 2002 09:56
To: Struts Users Mailing List
Subject: RE: i18n and images?
I
June 2002 14:52
To: Struts Users Mailing List
Subject: Re: i18n and images?
Sorry one more question:
If I want to specify width and height of the image, how should I do it?
Would you please give me the exact syntax? What if I want to use this image
as a submit button?
Thanks very much.
Tim
13 matches
Mail list logo