I am not an expert here so I am forwarding this to the dev list for basilti4moodle
/Chuck
On Feb 21, 2012, at 4:54 PM, Adrian Fish wrote:
> Hi Chuck,
>
> I just came upon this issue in the Sakai producer.
>
> http://code.google.com/p/basiclti4moodle/issues/detail?id=16
>
> I thought that the order of locale precedence should be:
>
> 1. Course (forced)
> 2. User
> 3. System
>
> So I modded our local code to this:
>
> $locale = $course->lang;
> if ( strlen($locale) < 1 ) {
> // The course language is not enforced. Use the user's profile setting.
> $locale = $USER->lang;
> if ( strlen($locale) < 1 ) {
> // No language specced for user. Use the default.
> $locale = $CFG->lang;
> }
> }
>
> Does that make sense?
>
> Cheers,
> Adrian.
>
> --
> ==================================
> Adrian Fish
> Software Engineer
> B66 Management School
> Lancaster University
> Lancaster
> LA1 4YW
>
> http://www.sakaiproject.org
> http://confluence.sakaiproject.org/display/YAFT/Yaft
> http://confluence.sakaiproject.org/display/CLOG/Home
> http://confluence.sakaiproject.org/display/BBB/Home
>
>
>