PascalAlberty
Feb 1st, 2008, 02:08 PM
Hi all,
I'm currently using (successfully) a localeChangeInterceptor and CookieLocaleResolver to allow users to choose their locale.
<bean id="localeChangeInterceptor"
class="org.springframework.web.servlet.i18n.LocaleChangeI nterceptor">
<property name="paramName" value="locale"/>
</bean>
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleR esolver">
<property name="defaultLocale" value="en"/>
<!-- 30 days -->
<property name="cookieMaxAge" value="2592000"/>
</bean>
The locale is stored in a cookie and the application is well translated.
But I have one page which is not translated (default locale is used). This page is the login (acegi) page.
Probably because this page is not a view (there is no controller) but a simple jsp page, messages are not translated.
Any idea ?
Thanks a lot
I'm currently using (successfully) a localeChangeInterceptor and CookieLocaleResolver to allow users to choose their locale.
<bean id="localeChangeInterceptor"
class="org.springframework.web.servlet.i18n.LocaleChangeI nterceptor">
<property name="paramName" value="locale"/>
</bean>
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleR esolver">
<property name="defaultLocale" value="en"/>
<!-- 30 days -->
<property name="cookieMaxAge" value="2592000"/>
</bean>
The locale is stored in a cookie and the application is well translated.
But I have one page which is not translated (default locale is used). This page is the login (acegi) page.
Probably because this page is not a view (there is no controller) but a simple jsp page, messages are not translated.
Any idea ?
Thanks a lot