Show
Prerequisites
Download the attached MDL-69012 -test.xml file, which contains sample quiz questions in various formats.
Have a test Moodle site with English (en) and _עברי (he)_ (Hebrew) language packs installed.
Have a course with at least one teacher and one student enrolled.
Clear all site caches.
Setup
Log in as a teacher and navigate to a course.
Add a new quiz activity called "Layout test quiz". Set the layout to new page "Never, all questions on one page" and then click "Save and display" (the rest of the settings should be left as default).
Click the "actions menu" cog and under "Question bank", select "Import".
On the import screen, select "Moodle XML format" file format, then in the file picker choose "Upload a file" and select the MDL-69012 -test.xml file you downloaded in step 1 of the Prerequisites.
Press "Upload this file", then press "Import".
CONFIRM you see 4 questions being imported, then press "Continue".
Return to the "Layout test quiz" and press "Edit quiz".
Click the "Add" dropdown, and select "from question bank".
Select the category " MDL-69012 (4)", tick all 4 questions, then press "Add selected questions to the quiz".
CONFIRM you now have 4 questions in the "Layout test quiz".
Test 1 - LTR
Log in as the student and navigate to the Layout test quiz.
Press "Attempt quiz now".
Complete the quiz by choosing all answers that do not say "incorrect" or "Don't choose it". Select all of the available options for the flags question.
Press "Finish attempt ...", then "Submit all and finish" (both times you are prompted).
Scroll through each of the questions and CONFIRM that in the answer/feedback section below the questions, the relevant answers to the below questions are displayed as follows (on the line below "Your answer is correct."):
The answers to this quiz have the default formatting for English (LTR). Select the ones that say they are correct :
The correct answers are: This is choice 1 (choose it), This is choice 3 (choose it)
(All on one line)
This question uses paragraph formatting with no direction (ala 3.8 and previous) :
The correct answers are: First answer old style (correct), This is a تست text (correct), This is also correct
(All on one line)
This question is written with Hebrew (RTL) set. :
The correct answers are: text one تست This is a, text تست This is a correct
(All on one line)
Which of the following flags belong to countries in the Commonwealth? :
All 3 flags displayed comma separated. If the browser window width is made wide enough, they will be displayed on a single line, otherwise one or more flags will wrap onto their own line.
Test 2 - RTL
While still on the quiz review page, find the language dropdown in the top navbar of the page, and change it from English (en) to Hebrew (this will trigger a page reload).
When the page has finished reloading, re-check all of the questions are still using a similar single-line answer layout, but are now adhering to RTL formatting (so the order of the list of answers will now be flipped), as per the examples below (on the line below ".Your answer is correct"). Pay close attention to the "This question is written with Hebrew (RTL) set" question, as it is now being shown in the original format it was written in, and the order of the words should be identical:
The answers to this quiz have the default formatting for English (LTR). Select the ones that say they are correct :
This is choice 3 (choose it) ,This is choice 1 (choose it) :התשובות הנכונות הן
(All on one line)
This question uses paragraph formatting with no direction (ala 3.8 and previous) :
This is also correct ,text (correct) تست This is a, First answer old style (correct) :התשובות הנכונות הן
(All on one line)
This question is written with Hebrew (RTL) set. :
text تست This is a correct ,text one تست This is a :התשובות הנכונות הן
(All on one line)
Which of the following flags belong to countries in the Commonwealth? :
All 3 flags displayed comma separated. If the browser window width is made wide enough, they will be displayed on a single line, otherwise one or more flags will wrap onto their own line (but this time, wrap to the right instead of to the left).