• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to check i18n application for different language

 
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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. ;-)
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on button click, pass in the selected language in the param. Then, you can do the following:

 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic