Hello,
Since I have only to languages ,I have provided a button in screen and
passing url parameter "english" and "polish".
In Action file taking this language and forming locale object and setting to
ACTION method "setLocale"
Wprowadź - Enter
Above polish word is not coming exactly as label in JSP page when page is
rendered.
Could any one suggest any solution to resolve the i18N for messages.
----------
if(strLanguage!=null && strLanguage.equalsIgnoreCase("english")){
strLanguage="en";
strCountry="US";
}else if(strLanguage!=null && strLanguage.equalsIgnoreCase("polish")){
strLanguage="pl";
strCountry="PL";
}else{
strLanguage="pl";
strCountry="PL";
}
Locale locale=new Locale(strLanguage,strCountry);
setLocale(request,locale);
-----Original Message-----
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Friday, January 04, 2008 8:21 PM
To: 'Martin Gainty'
Cc: [email protected]
Subject: RE: setting locale manually
So you mean if I add request_locale=en_US in all forward this will work
OR if I add in first forward it is sufficient?
_____
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Friday, January 04, 2008 8:10 PM
To: [EMAIL PROTECTED]
Subject: RE: setting locale manually
Czes Raghu
http://struts.apache.org/2.0.11/docs/i18n-interceptor.html
you can pass the locale on the request
and path accordingly
dziekuje!
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: setting locale manually
> Date: Fri, 4 Jan 2008 18:30:39 +0530
>
> How to set locale for my struts application.
>
> My application will have 2 languages.
>
> There will be 2 buttons in jsp page.
>
> One button is polish and other is English.
>
>
>
> on clicking of Polish button all the labels and button names and messages
> are to be changed into polis language.
>
>
>
> Any suggestions of implementing this
>
_____
Watch "Cause Effect," a show about real people making a real difference.
Learn <http://im.live.com/Messenger/IM/MTV/?source=text_watchcause> more
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]