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

In question type Drag and drop onto image (ddimageortext), multilang filters don't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.4, 3.4.1, 3.5
    • Fix Version/s: None
    • Component/s: Questions
    • Testing Instructions:
      Hide
      • Install a multilang filter plugin which doesn't relay on html tags, e.g. https://moodle.org/plugins/filter_multilang2. This is since tags in Drag and drop onto image questions, with some exceptions, HTML tags are not very welcome.
      • Enable that filter plugin for content and headings (in fact, without headings the fix does not work).
      • Aside english install at least another language, e.g. Russian
      • In a course, go to question bank
      • Create a new {{ Drag and drop onto image}} question, name it MDL-61286 test question
      • Let the question text be:

        {mlang en}Guess the color{mlang}{mlang ru}Угадайте цвет{mlang}
        

      • Add the attached redblue.png background image
      • Let the draggable item 1 of type draggable text be:

        {mlang en}red{mlang}{mlang ru}красный{mlang}
        

      • Let the draggable item 2 of type draggable text be:

        {mlang en}blue{mlang}{mlang ru}синий{mlang}
        

      • Let drop zone have item 1 and left 50 and top 100
      • Let drop zone have item 2 and left 50 and top 300
      • Save changes and continue editing and then preview
      • Cross check in english you see the english question text and labels.
      • Switch language to russian
      • Cross check in russian you see the russian question text and labels.
      Show
      Install a multilang filter plugin which doesn't relay on html tags, e.g. https://moodle.org/plugins/filter_multilang2 . This is since tags in Drag and drop onto image questions, with some exceptions, HTML tags are not very welcome. Enable that filter plugin for content and headings (in fact, without headings the fix does not work). Aside english install at least another language, e.g. Russian In a course, go to question bank Create a new {{ Drag and drop onto image}} question, name it MDL-61286 test question Let the question text be: {mlang en}Guess the color{mlang}{mlang ru}Угадайте цвет{mlang} Add the attached redblue.png background image Let the draggable item 1 of type draggable text be: {mlang en}red{mlang}{mlang ru}красный{mlang} Let the draggable item 2 of type draggable text be: {mlang en}blue{mlang}{mlang ru}синий{mlang} Let drop zone have item 1 and left 50 and top 100 Let drop zone have item 2 and left 50 and top 300 Save changes and continue editing and then preview Cross check in english you see the english question text and labels. Switch language to russian Cross check in russian you see the russian question text and labels.
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.4 Branch:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-61286-master

      Description

      Allow the labels to drag onto an image to have multilang labels.
      Standard Moodle multilang https://docs.moodle.org/34/en/Multi-language_content_filter won't work because of HTML tag restricitons, but multilang2 https://moodle.org/plugins/filter_multilang2 will.

        Attachments

        1. MDL-61286-before.png
          MDL-61286-before.png
          100 kB
        2. MDL-61286-en.png
          MDL-61286-en.png
          92 kB
        3. MDL-61286-ru.png
          MDL-61286-ru.png
          97 kB
        4. quiz-drag.png
          quiz-drag.png
          230 kB
        5. redblue.png
          redblue.png
          15 kB

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: