Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

struts2 i18n - default language  RSS feed

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have found the answer,
all we need to do is to set the "request_locale" form action, thats it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!