You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Searle <ch...@empolis.no> on 2004/11/11 15:56:07 UTC
Override default locale per application
Struts 1.2.4 - running under jboss 3.2
The localization works just fine - if the user has set preferred
languages in the browser.
However - if this is not set the application will use the default
locale of the VM.
This seems to mean (under jboss where the vm is shared amongst apps
AFAIK) that all apps must have the same default locale inherited from
the system - which is a problem here where we need one app to have
English and one to have Norwegian as default:
App 1 has
app1.properties (which has english text)
app1_no.properties
App 2 has
app2.properties (which has norwegian text)
app2_en.properties
app2_no.properties
So - if the system locale is english then jboss inherits english and
app2 will use app2_en.properties if nothing is sent from the browser
instead of app2.properties.
I can't see a way to set default locale per application in the config
- is there one?
If not - how would you approach the problem - some kind of override of
one of the struts classes? Would appreciate some hints on what path to
take here :-)
--
Chris Searle
chris@empolis.no
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org