File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to check i18n application for different language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to check i18n application for different language" Watch "how to check i18n application for different language" New topic
Author

how to check i18n application for different language

dhanaji sawant
Greenhorn

Joined: May 25, 2006
Posts: 3
i have made one program in sturts in which i have made 3 applicationResource.en_US.properties and other language applicationResource.it_IT.properties and now i have to test these language support in my browser but it language is english so it disply on english ...i want to test for other language so tell me the procedure...
Tim Storms
Ranch Hand

Joined: Apr 27, 2006
Posts: 64
Have you tried to change the language setting of your browser?

In Firefox e.g. goto Extra - Properties - Advanced settings - Language - Change language (my browser isn't english so I guessed these words... :-)).

That should do the trick. ;-)


SCJP 1.5, SCWCD 1.4, SCBCD 5
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In Microsoft Internet Explorer it's tools-->internet options. Then select the "General" tab and click the "Languages" button. You can add any number of languages, but make sure the language you want to test is at the top of the list.


Merrill
Consultant, Sima Solutions
Sofortstart sheldon
Greenhorn

Joined: Oct 10, 2012
Posts: 2
I have a struts application. It needs to be changed from english to german and viceversa when a button is pressed. How can I do that.
Sofortstart sheldon
Greenhorn

Joined: Oct 10, 2012
Posts: 2
No,it should not be externally set using Microsoft Internet Explorer it's tools-->internet options. Just locale in the application has to be changed I guess. I have'nt implemented any code for it yet.
Sp Wong
Greenhorn

Joined: Jan 29, 2012
Posts: 4
on button click, pass in the selected language in the param. Then, you can do the following:

jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi,

You dont need to set the locale in the browser. you have to set the locale through code only based on which struts will load the properties file.
Setting language option in browser is wrong.

Refer this.

Regards
Jatan

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to check i18n application for different language
 
Similar Threads
Translation and language comparison
Extra Emoticons
VBA
explain me this small code
Quality of postings