Re: Locales and images

2001-03-26 Thread Maya Muchnik
Craig and others, I am sorry to "touch" the old question. I have a problem with this tag to display altKey (not displayed at all). Here is an extract from my resourse file: image.btnEnter=/images/button_enter.gif altkey.btnEnter=btnEnter And this is a call from jsp: I have tried with and with

Re: Locales and images

2001-03-21 Thread Ken Beyer
Maya Muchnik wrote: > 1/ > How about several files under A directory: > B.properties > B_en.properties > B_de.properties > B_fr.properties > > and so on... > > Can you see it, that you have a problem. Yeah, it's abit of a problem. The "overridden" PropertyMessageResources would need to be smar

Re: Locales and images

2001-03-21 Thread Maya Muchnik
1/ How about several files under A directory: B.properties B_en.properties B_de.properties B_fr.properties and so on... Can you see it, that you have a problem. 2/ How about a file name as extra init parameter that has names of all properties files that you want to "combine". But this becomes a

Re: Locales and images

2001-03-21 Thread Craig R. McClanahan
On Wed, 21 Mar 2001, Ken Beyer wrote: > Ken Beyer wrote: > > > > Anyone have a snippet of a build.xml that's does this "combining" of > > > the properties files? > > > > I appologize for beating this thread to death, but I want to mention 2 > more things. > > 1) I think I found another way t

Re: Locales and images

2001-03-21 Thread Ken Beyer
Ken Beyer wrote: > > Anyone have a snippet of a build.xml that's does this "combining" of > > the properties files? > I appologize for beating this thread to death, but I want to mention 2 more things. 1) I think I found another way to merge multiple properties files (if anyone cares :-). I cou

Re: Locales and images

2001-03-21 Thread Craig R. McClanahan
On Wed, 21 Mar 2001, Nick Afshartous wrote: > > > On Tue, 20 Mar 2001, Maya Muchnik wrote: > > > > > > Can I put a.gif into the property file too, and have the second statement as > > > this: > > > > > > Or I can have > > > > > > > > Craig R. McClanahan writes: > > The assumption

Re: Locales and images

2001-03-21 Thread Maya Muchnik
I am trying to use this for different "look". But my principle is simple. In one application a.gif - is a blank, in other - it is some picture. And so on... Change your property file to point to a different directory for different "look". But in this approach you have one match between application

Re: Locales and images

2001-03-21 Thread Nick Afshartous
> On Tue, 20 Mar 2001, Maya Muchnik wrote: > > > > Can I put a.gif into the property file too, and have the second statement as > > this: > > > > Or I can have > > > > Craig R. McClanahan writes: > The assumption behind this new facility is that you need to > internationalize your

Re: Locales and images

2001-03-20 Thread Maya Muchnik
I am not sure about several resource files. I have try to create other servlet and "match" it to other file, initialize this file. But then what? It will stay in the memory and do nothing? Then how about reload function? You need rewrite it too (run super.reload(), destroy your local info, init

Re: Locales and images

2001-03-20 Thread Peter Alfors
Check out Ant 1.3. The user list said that a task has been added. HTH, Pete "Craig R. McClanahan" wrote: > On Tue, 20 Mar 2001, Ken Beyer wrote: > > > > Anyone have a snippet of a build.xml that's does this "combining" of > > > the properties files? > > > > Looks pretty reasonable to me.

Re: Locales and images

2001-03-20 Thread Craig R. McClanahan
On Tue, 20 Mar 2001, Maya Muchnik wrote: > Craig, > > If b.gif is a shared resource for two resource files, is it true, that only a >default > resource file (without language extension) needs to have it? > That is technically correct. I have found, though, that this sometimes confuses the

Re: Locales and images

2001-03-20 Thread Craig R. McClanahan
On Tue, 20 Mar 2001, Ken Beyer wrote: > > Anyone have a snippet of a build.xml that's does this "combining" of > > the properties files? > Looks pretty reasonable to me. It looks like a platform-inpendent task might be a nice contribution to Ant, because this won't work under Windows unless

Re: Locales and images

2001-03-20 Thread Ken Beyer
> Anyone have a snippet of a build.xml that's does this "combining" of > the properties files? Craig/etc, I'm not an Ant expert, but managed to do the "cat" (of my properties files) you suggested by putting the following in my build.xml. I know it's more Ant specific than Struts, but do you kn

Re: Locales and images

2001-03-20 Thread Ken Beyer
"Craig R. McClanahan" wrote: > On Tue, 20 Mar 2001, Ken Beyer wrote: > > > > > I'm struggling with something very similar and could really > > use a recommendation. > > > > In the Building View Components documentation about i18n, > > (http://jakarta.apache.org/struts/userGuide/building_view.htm

Re: Locales and images

2001-03-20 Thread Maya Muchnik
Craig, As I understand Ken, he wants to have several files and not combine them in a application level. He wants to add one attribute for each tag, where the file name is pointed out. Right Ken? Is it possible? From your response, it is not. Maya "Craig R. McClanahan" wrote: > On Tue, 20 Mar 200

Re: Locales and images

2001-03-20 Thread Maya Muchnik
Craig, If b.gif is a shared resource for two resource files, is it true, that only a default resource file (without language extension) needs to have it? Maya "Craig R. McClanahan" wrote: > On Tue, 20 Mar 2001, Maya Muchnik wrote: > > > Craig, > > > > Can I ask you on an example to be sure, t

Re: Locales and images

2001-03-20 Thread Ken Beyer
I'm also seeing that it's way too much now (a message resource per jsp). I found the following to be helpful... http://jakarta.apache.org/struts/api/org/apache/struts/util/package-summary.html#doc.Messages I'm thinking of at least starting off with separating the images from text, and maybe bre

Re: Locales and images

2001-03-20 Thread Craig R. McClanahan
On Tue, 20 Mar 2001, Ken Beyer wrote: > > I'm struggling with something very similar and could really > use a recommendation. > > In the Building View Components documentation about i18n, > (http://jakarta.apache.org/struts/userGuide/building_view.html), > it describes using a MyResources.pro

Re: Locales and images

2001-03-20 Thread Craig R. McClanahan
On Tue, 20 Mar 2001, Maya Muchnik wrote: > Craig, > > Can I ask you on an example to be sure, that it is correct. > My images are under images directory from root application dir. So, I can put the > following statements: > (in a property file : > message.key=images > a.image=a.gif > a.image.d

Re: Locales and images

2001-03-20 Thread Maya Muchnik
To have a separate property file for each JSP - it is too much. All the rest - a good idea. I am creating my servlet that extends ActionServlet and does two things: expending destroy and init functions. The reason - I have to initialize some paramaters that I will use in xxxAction through applicat

Re: Locales and images

2001-03-20 Thread Ken Beyer
I'm struggling with something very similar and could really use a recommendation. In the Building View Components documentation about i18n, (http://jakarta.apache.org/struts/userGuide/building_view.html), it describes using a MyResources.properties (default) and other MyResources_XX.properties f

Re: Locales and images

2001-03-20 Thread Maya Muchnik
Craig, Can I ask you on an example to be sure, that it is correct. My images are under images directory from root application dir. So, I can put the following statements: (in a property file : message.key=images a.image=a.gif a.image.dir=images/a.gif ) ... ... Can I put a.gif into the propert

Re: Locales and images

2001-03-19 Thread Craig R. McClanahan
On Mon, 19 Mar 2001, Kyle Robinson wrote: > I understand Struts has support for makeing web apps available in different > languages. Does this include images? If I have images with text on them in > English can I make images with text in French as well? Do I name the image > files differentl

RE: Locales and images

2001-03-19 Thread Ben Souther
Put the path to the images in the properties files -Original Message- From: Kyle Robinson [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 12:36 PM To: Struts (E-mail) Subject: Locales and images I understand Struts has support for makeing web apps available in different

Locales and images

2001-03-19 Thread Kyle Robinson
I understand Struts has support for makeing web apps available in different languages. Does this include images? If I have images with text on them in English can I make images with text in French as well? Do I name the image files differently or do I have to include the paths to the images in