apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
67 stars 72 forks source link

LTI v1.3 Tool: student can not change language in a multilingual course #1253

Open markkuriekkinen opened 1 year ago

markkuriekkinen commented 1 year ago

If a multilingual (Finnish and English study materials) A+ course is used via the LTI Platform (Moodle), then the student has no UI for changing the language of the A+ course. If the student has visited the course in the real A+ site, the language selected there would be active in the LTI view as well. The LTI view does not include the UI for selecting the course language.

The existing A+ LTI Tool code already sets the LTI language parameter to the user profile, but that does not select the language in a multilingual course. The course-specific language selection is saved in the Enrollment model. https://github.com/apluslms/a-plus/blob/a932c5104504f3367e81448ca8a42584f88f27a1/lti_tool/views.py#L71-L73