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

Drag-drop question types don't allow multilang filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • 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

      Set-up

      1. Enable the multilang filter for content and headings.
      2. Install at least one other language, e.g. Russian
      3. In a course, go to question bank

      DD into image

      1. Create a new Drag and drop onto image question.
      2. Set the question text to:

        <span lang="en" class="multilang">Guess the color</span><span lang="ru" class="multilang">Угадайте цвет</span>
        

      3. Upload the attached redblue.png as the background image.
      4. Let the draggable item 1 of type draggable text be:

        <span lang="en" class="multilang">red</span><span lang="ru" class="multilang">красный</span>
        

      5. Let the draggable item 2 of type draggable text be:

        <span lang="en" class="multilang">blue</span><span lang="ru" class="multilang">синий</span>
        

      6. Move both items to an appropriate place on the background (drag with the mouse, or type coordinates left 50, top 100 for item 1, left 50, top 300 for item 2.
      7. Verify that the preview just shows the first language text (en)
      8. Save changes and continue editing and then preview
      9. Cross check in english you see the english question text and labels.
      10. Switch language to russian
      11. Cross check in russian you see the russian question text and labels.

      DD markers

      Please perform a similar test with the drag-drop markers question type. (Detailed steps not given)

      DD markers

      Please perform a similar test with the drag-drop into text question type. (Detailed steps not given)

      Show
      Set-up Enable the multilang filter for content and headings. Install at least one other language, e.g. Russian In a course, go to question bank DD into image Create a new Drag and drop onto image question. Set the question text to: <span lang="en" class="multilang">Guess the color</span><span lang="ru" class="multilang">Угадайте цвет</span> Upload the attached redblue.png as the background image. Let the draggable item 1 of type draggable text be: <span lang="en" class="multilang">red</span><span lang="ru" class="multilang">красный</span> Let the draggable item 2 of type draggable text be: <span lang="en" class="multilang">blue</span><span lang="ru" class="multilang">синий</span> Move both items to an appropriate place on the background (drag with the mouse, or type coordinates left 50, top 100 for item 1, left 50, top 300 for item 2. Verify that the preview just shows the first language text (en) 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. DD markers Please perform a similar test with the drag-drop markers question type. (Detailed steps not given) DD markers Please perform a similar test with the drag-drop into text question type. (Detailed steps not given)
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:
    • Pull Master Branch:
      MDL-61286-master

      Description

      Allow the labels to drag onto an image to have multilang labels.

      Rules about which HTML tags are allowed should be relaxed to allow Standard Moodle multilang https://docs.moodle.org/34/en/Multi-language_content_filter to work. multilang2 https://moodle.org/plugins/filter_multilang2 should probably also be supported.

        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: