my dog learned polymorphism*
The moose likes Struts and the fly likes struts2 i18n - default language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 i18n - default language" Watch "struts2 i18n - default language" New topic
Author

struts2 i18n - default language

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,

in my application i have two languages i.e. english and dutch, so i have created to properties file. but the problem is that my application is taken english as default,

if i put the above code in struts.properties, then the default becomes dutch.

all i need is to set the languages from action, so that according to user i can change the language.

any help would be appreciated.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

i have found the answer,
all we need to do is to set the "request_locale" form action, thats it.
 
wood burning stoves
 
subject: struts2 i18n - default language
 
Similar Threads
Need help to support in multiple languages
Europe's Spoken Languages / Programming Language
ResourceBundle & defaultLocale
internationalization & Properties file order (gone south)
how to dislay different language