Originally posted by Oliver Refle:
Why don't you just deliver the default property file ? then all users get the same language shown. If you want to provide more languages then add new localized property files.
Why do you want to set the locale in a property file ? Just offer a default language and nothing else.
Thanks Oliver,
But I want to have all application resource files at once and do not have to replace/delete application resource file when the application is re-deployed to serve another country. Specifying which country/language is active is done at deployment time by a single parameter. That's much simpler.
I am thinking of setting all requests's locale to a fixed value at the preProcess method of the ActionServlet.