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

Language pack issue in H5P editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.11.15, 4.1.4
    • H5P
    • WP Sprint 2023-I4.2 (Clones), WP Sprint 2023-I4.3

      Moodle Workplace language packs use a code with _wp added to the original language pack code. In our case (Netherlands) the original language pack is nl and the Workplace is nl_wp.

      When using H5P it determines the interface based on the language pack. So if you have nl als language pack it shows the H5P interface in Netherlands. However if you add the nl_wp language pack it falls back to English.

      Apparently this issue has been solved for Moodle LMS in tracker 71050 which has been closed for some time. There the issue appeared with for example en_kids.

      I hope this one can easily be fixed for _wp packages as well.

       

      Steps to reproduce

      1. Login as admin.
      2. Install nl_wp language pack.
      3. Go to the Content bank.
      4. Switch language to nl_wp.
      5. Add a "Multiple choice"
      6. Expand the "Text overrides and translations" section (placed at the end of the editor).
      7. Although the strings are translated OK (it was fixed in MDL-71050), the Language selector is not displaying the current language.

      Expected behaviour

      In the Language selector, Dutch (Nederlands) is selected.

      Current behaviour

      In the Language selector, English is displayed:

            odei.alba@moodle.com Odei Alba
            peterjonker Peter Jonker
            Paul Holden Paul Holden
            Votes:
            2 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 15 minutes
                1d 15m

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