Hi,

I'm experiencing strange behaviours with the message resources and I'm not sure 
about where to find the problem.

I defined the message resources in the struts-config.xml:
<!-- ==== Message Resources Definitions ==== -->
<message-resources 
parameter="com.equitystory.pms.resources.ApplicationResources" />

In the folder named in the xml (Resources/src/com/equitystory/pms/resources/), 
I created the following files:
ApplicationResources.properties
ApplicationResources_de.properties

When accessing the application with a browser "speaking" "de", I see the 
correct messages, but sometimes log4j is telling me that 
ApplicationResources_de_DE.properties is missing. I created this file and left 
it empty.
When accessing the application with an browser "pseaking" "en", the application 
is mixed up with german and english messages (as defined in the 
ApplicationResources). I created ApplicationResources_en.properties and left it 
empty, and now everything works fine. 

The problem I now got is what happens if someone with a browser "speaking" 
another language is accessing the application? It would be great if there would 
be an easier solution with just the two files I named above and struts using 
the default file if there is no language-specific file (e.g. 
"ApplicationResources_de.properties" for every browser speaking "de" and 
"ApplicationResources.properties" for all other languages).

Thanks in advance,
Sebastian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to