Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85606

LTI provider - Tool language does not change with user language (force_embed=1)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.1
    • LTI provider

      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

      1. Configure MoodleTool and create an LTI tool, setting the initial language to English.
      1. In MoodlePlatform, create a course and set the user’s language to English.
      1. In MoodlePlatform, create an LTI activity using the MoodleTool with force_embed=1.
      1. Access the LTI activity: it displays in English (correct behavior).
      1. In MoodlePlatform, change the user’s language to Spanish.
      1. 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!

            Unassigned Unassigned
            abertran Antoni Bertran Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.