wood burning stoves*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 i18n - default language" Watch "struts2 i18n - default language" New topic

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: struts2 i18n - default language
Similar Threads
how to dislay different language
Europe's Spoken Languages / Programming Language
Need help to support in multiple languages
ResourceBundle & defaultLocale
internationalization & Properties file order (gone south)