Thanks Sanoj, I am a bit poor on this fundamental issue of internationalization....Do I need to specifically create a Locale Object for the User.... What I was thinking was if in my struts-config.xml if I specify ApplicationResources_fr_FR , the values would be picked up ....
Please do correct me if I am wrong... -----Original Message----- From: Sanoj, Antony (IE10) [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 8:41 PM To: Struts Users Mailing List Subject: RE: Internationalization This is what I have perceived.(correct me if I am wrong) Say u have two resourcebundles as follows, ApplicationResources_en_US.properties ApplicationResources_fr_FR.properties When the user logs in to your application, based on the users locale, you set the locale to english, US or you set to french, French. Inside your action class execute method,(Ideally inside your login action) 1) get the language and country (Get it some way from the user/ or should be there when the user is created) 2) create a Locale object, new Locale(Language, Country) 3) setLocale(request, locale object) This is stored in session scope under the key Globals.LOCALE_KEY Now for the entite user session, the appropriate resource bundle will be used. To make it flashy, you can put some nation flags on your website initial page and extract the locale info from the user. Regards, Sanoj Antony -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 8:11 PM To: [EMAIL PROTECTED] Subject: Internationalization Hello All, Our application is going to be a French Application with the display in the Jsp pages to be French. By just configuring the message-resource parameter to use a bundle file which is in French can this be achieved... I mean for English we have ApplicationResources ...for French we are planning to have ApplicationResources_fr in which the values would be in French But the keys remain the same. Is it as simple as this? VJ DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]