IDPv3 internationalization via links and cookies
Brent Putman
putmanb at georgetown.edu
Tue Nov 3 12:25:45 EST 2015
On 11/3/15 10:06 AM, Cantor, Scott wrote:
> On 11/3/15, 3:47 AM, "users on behalf of Simon Lundström" <users-bounces at shibboleth.net on behalf of simlu at su.se> wrote:
>
>
>
>> 3 is easy, just put:
>> <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
>> <property name="cookieName" value="lang"/>
>> </bean>
>> in %{idp.home}/system/conf/mvc-beans.xml
> I'll look at the class. I can just add it to the default file if it's harmless.
>
>
IIRC, it probably is harmless itself. But there's more than one impl
of the MVC LocaleResolver interface. We'd want to consider whether we
want to dictate a particular one in the (unmodifiable) system config.
Other people might want to use different approaches.
> 3.2 includes an MVC customizing bean file, but I can probably just add the cookie bean. There is no way now.
Since we're adding that support, I'd say just allowing users to add a
new LocaleResolver (or change the default) there might be safer. That
way we don't hardcode something in that's difficult or impossible for
deployers to change.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151103/daf4f0c2/attachment.html>
More information about the users
mailing list