PDA

View Full Version : Internationalization


Chesa
Jun 3rd, 2006, 09:27 PM
hi, how would you change the languange. for example you have an option english, german and french.

my message.properties:

user.id =Id

how will you do it without changing the values of the variables in the message properties one by one.



thanks a lot.

katentim
Jun 4th, 2006, 05:33 AM
how will you do it without changing the values of the variables in the message properties one by one Normally you have a separate properties file for each locale. For example for France you'd have messages_fr.properties. Take a look at the countries sample in the distribution.

Also take a look at: 13.6. Using locales. (http://static.springframework.org/spring/docs/1.2.x/reference/mvc.html#mvc-localeresolver)