File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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, 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:
subject: struts2 i18n - default language
Similar Threads
how to dislay different language
internationalization & Properties file order (gone south)
Europe's Spoken Languages / Programming Language
ResourceBundle & defaultLocale
Need help to support in multiple languages