Wrong fallback language

Brent Putman putmanb at georgetown.edu
Tue May 30 15:16:41 EDT 2017

On 5/30/17 11:52 AM, Sobotka Martin wrote:
> 	<mvc:interceptors>
> 		<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
> 			<property name="paramName" value="Lang"/>
> 			<property name="languageTagCompliant" value="true"/>
> 			<property name="ignoreInvalidLocale" value="true"/>
> 		</bean>
> 	</mvc:interceptors>
> 	<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
> 		<property name="cookieName" value="locale"/>
> 		<property name="languageTagCompliant" value="true"/>
> 	</bean>
> 	[...]

I haven't reviewed the Spring MVC docs in awhile on this, but their
LocaleResolver impls usually take a 'defaultLocale' property which sets
the default if it is otherwise unspecified.  You can even see this in
one of our examples (expand the 2nd one):


They don't really mention this in the Spring Framework locale docs
[1],  so might be helpful to look at the actual Javadocs for the
various concrete LocaleResolver impl classes, which are mostly linked
from here [2].  Looks like the AcceptHeader-, Cookie- and Session- ones
all do, either directly in the impl or via the abstract base class


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170530/09a1cebb/attachment.html>

More information about the users mailing list