[Building Sakai] locale handling in RSF

Matthew Jones matthew at longsight.com
Tue Jul 9 12:00:55 PDT 2013


Yea, sounds like you'll have to submit a patch against
SakaiRSF->SakaiLocalDeterminer. It figures it out in that getObject method.
This order isn't correct?

The order it says are

 * <li>The Site Language
 * <li>The User's preferences
 * <li>The current ServletRequest
 * <li>The Sakai Session

https://github.com/rsf/SakaiRSF/blob/afe1b0572fe20820becfb18f1f76597be87d0a0e/src/java/uk/ac/cam/caret/sakai/rsf/locale/SakaiLocaleDeterminer.java



On Tue, Jul 9, 2013 at 2:48 PM, Charles Hedrick <hedrick at rutgers.edu> wrote:

> I have a report about Lessons, LSNBLDR-239<https://jira.sakaiproject.org/browse/LSNBLDR-239>
> ,
>
> "When you set up sakai to startup with any other locale (ex.
> -Duser.language=ca -Duser.region=ES) and a users logs in in sakai but he
> never configured the language settings, he sees all bundles string in the
> language defined by navigator, not the default language. (See the
> attached picture) "
>
> Most of the locale handing is done by RSF. A bit of experimentation seems
> to show that RSF-based tools don't get the locale set that way, while other
> tools do. Is there something I can do to tell RSF what locale to use, so I
> can set it using the same code everyone else uses?
>
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130709/0ac61499/attachment.html 


More information about the sakai-dev mailing list