Re: Intenationalization questions

2008-04-22 Thread Pranav
on this. Thanks Pranav - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 21, 2008 9:33:44 PM Subject: Re: Intenationalization questions Pranav wrote: Ok, so here's what I intend to prototype. Please let me know

Re: Intenationalization questions

2008-04-22 Thread Jeromy Evans
Pranav wrote: Ok then following your expert advice I think I want to use the second approach now where I define my own TextProvider instance. Q.1) The ActionSupport class uses TextProviderSupport class which internally calls the LocalizedTextUtil class. Is that right understanding? Q.2) What I

Re: Intenationalization questions

2008-04-21 Thread Jeromy Evans
Pranav wrote: Thanks for the reply. So, for a scalability, you suggest that I should change TextProvider implementation to load a resource bundle for each customer. I don't exactly know how to tell it to load a customer specific resource bundle. I mean which methods to override for doing

Re: Intenationalization questions

2008-04-21 Thread Ralf Fischer
Hi, On Mon, Apr 21, 2008 at 5:37 AM, Pranav [EMAIL PROTECTED] wrote: Hi, I am new to struts 2 and trying to figure out a problem that I am having w.r.t. I18n. My application is supposed to serve multiple clients per hosted instance of the application and the requirement is to somehow

Re: Intenationalization questions

2008-04-21 Thread Pranav
not be complicated at all. Thanks Pranav - Original Message From: Ralf Fischer [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 21, 2008 4:57:42 AM Subject: Re: Intenationalization questions Hi, On Mon, Apr 21, 2008 at 5:37 AM, Pranav [EMAIL PROTECTED

Re: Intenationalization questions

2008-04-21 Thread Dave Newton
--- Pranav [EMAIL PROTECTED] wrote: No the message displayed by welcome.user would be entirely different. E.g. one could say welcome to the world of Unlimited Skiing, while the other one could say Aren't you supposed to be working? etc. You get the idea. If it was just possible with an args

Re: Intenationalization questions

2008-04-21 Thread Ralf Fischer
Hi, On Mon, Apr 21, 2008 at 5:46 PM, Dave Newton [EMAIL PROTECTED] wrote: --- Pranav [EMAIL PROTECTED] wrote: No the message displayed by welcome.user would be entirely different. E.g. one could say welcome to the world of Unlimited Skiing, while the other one could say Aren't you

Re: Intenationalization questions

2008-04-21 Thread Pranav
@struts.apache.org Sent: Sunday, April 20, 2008 11:36:21 PM Subject: Re: Intenationalization questions Pranav wrote: Thanks for the reply. So, for a scalability, you suggest that I should change TextProvider implementation to load a resource bundle for each customer. I don't exactly know how

Re: Intenationalization questions

2008-04-21 Thread Jeromy Evans
Pranav wrote: Ok, so here's what I intend to prototype. Please let me know if this will work or not. ... What do you think? Any comments or warnings would be highly appreciated. This will work. As mentioned, it won't scale well. As warned by others, don't take this approach if the

Re: Intenationalization questions

2008-04-20 Thread Jeromy Evans
Pranav wrote: Hi, Now my questions are: 1) If I do the above, do I always have to use the getText way of looking up the messages? If I use the key attribute of the UI tags, will the overridden getText methods be still called? Yes. The Struts2 tags with a key attribute and the s:text tag

Re: Intenationalization questions

2008-04-20 Thread Pranav
to associate this custom TextProvider to my BaseActionSupport class. Thanks Pranav - Original Message From: Jeromy Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, April 20, 2008 9:07:52 PM Subject: Re: Intenationalization questions Pranav wrote