-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.1
-
MOODLE_501_STABLE
Description of the problem
When an LTI tool is published from MoodleTool and an initial language is set (e.g., English), the tool always displays in that language, regardless of the user’s language selection in MoodlePlatform. This issue persists even if the user switches their language in the platform.
The problem is especially noticeable when force_embed=1 is used, as the embedded content not shows the language selector
Steps to reproduce
- Configure MoodleTool and create an LTI tool, setting the initial language to English.
- In MoodlePlatform, create a course and set the user’s language to English.
- In MoodlePlatform, create an LTI activity using the MoodleTool with force_embed=1.
- Access the LTI activity: it displays in English (correct behavior).
- In MoodlePlatform, change the user’s language to Spanish.
- Access the LTI activity again: it still displays in English (incorrect behavior).
Expected behavior
The tool should respect the user’s language in MoodlePlatform and adapt the display accordingly, even when force_embed=1 is used. The initial language set during the LTI tool creation in MoodleTool should not override the user’s language in the platform.
Impact
This issue affects multilingual environments where the learning experience needs to be tailored to the user's preferred language.
Possible solution
In enrol/lti/classes/local/ltiadvantage/service/tool_launch_service.php add the locale management
thanks!