Posted By:
Mark_Trinh
Posted On:
Monday, January 26, 2004 07:11 PM
Hi, I'm trying to localize my jsp pages and currently the struts-config.xml files has the message-resources pointing to "en_US.application". What I wanted to do was change the locale by changing the session LOCALE_KEY. By default, you must have the application_es_MX.properties file in the same directory if you want it to localize to spanish. The problem is that I wanted to have different directories for my .properties files, ie. en_US/application.properties, es_MX/application.properties, fr/application.properties, fr_CA/application.properties, etc... How do I change it so when I change the session locale, then it pulls it from those specific directories with the different application.properties in
More>>
Hi,
I'm trying to localize my jsp pages and currently the struts-config.xml files has the message-resources pointing to "en_US.application".
What I wanted to do was change the locale by changing the session LOCALE_KEY. By default, you must have the application_es_MX.properties file in the same directory if you want it to localize to spanish.
The problem is that I wanted to have different directories for my .properties files, ie. en_US/application.properties, es_MX/application.properties, fr/application.properties, fr_CA/application.properties, etc...
How do I change it so when I change the session locale, then it pulls it from those specific directories with the different application.properties inside, instead of the same directory with the locale appended to it?
Part 2:
i've also noticed that if I have just application_fr.properties that it doesn't work when you change your locale to FR. You need to have the full locale & country (i.e. fr_CA). Is there anyway java will recognize the short form?
thanks in advance,
Mark
<<Less