<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 11/3/15 10:06 AM, Cantor, Scott
      wrote:<br>
    </div>
    <blockquote cite="mid:95524564-1060-4CED-A0BF-5E2A87926B36@osu.edu"
      type="cite">
      <pre wrap="">On 11/3/15, 3:47 AM, "users on behalf of Simon Lundström" <a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@shibboleth.netonbehalfofsimlu@su.se"><users-bounces@shibboleth.net on behalf of simlu@su.se></a> wrote:



</pre>
      <blockquote type="cite">
        <pre wrap="">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
</pre>
      </blockquote>
      <pre wrap="">
I'll look at the class. I can just add it to the default file if it's harmless.

</pre>
      <br>
    </blockquote>
    <br>
    <br>
    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.<br>
    <br>
    <br>
    <blockquote cite="mid:95524564-1060-4CED-A0BF-5E2A87926B36@osu.edu"
      type="cite">
      <pre wrap="">
3.2 includes an MVC customizing bean file, but I can probably just add the cookie bean. There is no way now.</pre>
    </blockquote>
    <br>
    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.<br>
    <br>
    <br>
  </body>
</html>