-
1. Re: GateIn localization with Spring mvc
ceik Aug 18, 2010 6:33 AM (in response to inventorfam2004)Maybe this answer parts of your question: https://jira.jboss.org/browse/GTNPORTAL-1306
If you let the browser take responsibility (as far as I have tested), you can put something like this in your applicationContext.xml:
<bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="defaultEncoding" value="UTF-8" />
<property name="fallbackToSystemLocale" value="false" />
<property name="basenames">
<list>
<value>locale.portlet.custom.SomeProperty</value>
<value>locale.portlet.custom.log4j</value>
</list>
</property>
</bean>And then have SomeProperty_xx.properties of what you support.
In you jsp's:
<fmt:setLocale value="<%=request.getLocale()%>" />
<fmt:setBundle basename="locale.portlet.custom.SomeProperty" />