Last active
February 8, 2024 13:44
-
-
Save wilenius/c22c4ba69ebd83445da3443c74cd8b00 to your computer and use it in GitHub Desktop.
Prompt for making Moodle quiz XML content bilingual
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have multiple choice questions in Moodle's XML format, and I need to make them bilingual, written both in English and in Finnish, according to this example. | |
Here's the original question: | |
<question type="multichoice"> | |
<name> | |
<text>Land's End - land ownership</text> | |
</name> | |
<questiontext format="moodle_auto_format"> | |
<text>Based on the text, what is a significant concern regarding the indigenous highlanders and land ownership?</text> | |
</questiontext> | |
<generalfeedback format="moodle_auto_format"> | |
<text></text> | |
</generalfeedback> | |
<defaultgrade>1.0000000</defaultgrade> | |
<penalty>0.3333333</penalty> | |
<hidden>0</hidden> | |
<idnumber></idnumber> | |
<single>true</single> | |
<shuffleanswers>true</shuffleanswers> | |
<answernumbering>abc</answernumbering> | |
<showstandardinstruction>0</showstandardinstruction> | |
<correctfeedback format="moodle_auto_format"> | |
<text></text> | |
</correctfeedback> | |
<partiallycorrectfeedback format="moodle_auto_format"> | |
<text></text> | |
</partiallycorrectfeedback> | |
<incorrectfeedback format="moodle_auto_format"> | |
<text></text> | |
</incorrectfeedback> | |
<answer fraction="0" format="moodle_auto_format"> | |
<text>Indigenous highlanders are aggressively expanding their land ownership.</text> | |
<feedback format="moodle_auto_format"> | |
<text>Incorrect. The text does not suggest aggressive expansion by the highlanders.</text> | |
</feedback> | |
</answer> | |
<answer fraction="0" format="moodle_auto_format"> | |
<text>Indigenous highlanders are indifferent to land ownership issues.</text> | |
<feedback format="moodle_auto_format"> | |
<text>Incorrect. The text does not imply indifference; it highlights concern.</text> | |
</feedback> | |
</answer> | |
<answer fraction="100" format="moodle_auto_format"> | |
<text>Indigenous highlanders joined the ranks of those unable to sustain themselves on their land.</text> | |
<feedback format="moodle_auto_format"> | |
<text>Correct. The text indicates that indigenous highlanders are unable to sustain themselves, leading to concerns about land ownership.</text> | |
</feedback> | |
</answer> | |
<answer fraction="0" format="moodle_auto_format"> | |
<text>Indigenous highlanders have started renting out their land for profit.</text> | |
<feedback format="moodle_auto_format"> | |
<text>Incorrect. The text does not mention renting out land as a widespread practice.</text> | |
</feedback> | |
</answer> | |
</question> | |
Here is the translated version. The format properties were removed, and unnecessary tags removed. It was made bilingual by adding a Finnish translation using span tags enclosed in CDATA sections, as in this example: <![CDATA[<span lang="fi" class="multilang">]]>. Multilang tags were added around English content too. The content inside <name> tags is not translated. Here is the result: | |
<?xml version="1.0" encoding="UTF-8"?> | |
<quiz> | |
<!-- question: 6408196 --> | |
<question type="multichoice"> | |
<name> | |
<text>Land's End - land ownership</text> | |
</name> | |
<questiontext> | |
<text><![CDATA[<span lang="en" class="multilang">Based on the text, what is a significant concern regarding the indigenous highlanders and land ownership?</span><span lang="fi" class="multilang">Tekstin perusteella, mikä on merkittävä huolenaihe alkuperäiskansojen ylänköasukkaiden ja maanomistuksen suhteen?</span>]]></text> | |
</questiontext> | |
<single>true</single> | |
<answer fraction="0"> | |
<text><![CDATA[<span lang="en" class="multilang">Indigenous highlanders are aggressively expanding their land ownership.</span><span lang="fi" class="multilang">Alkuperäisasukkaat ovat aggressiivisesti laajentamassa maanomistustaan.</span>]]></text> | |
<feedback> | |
<text><![CDATA[<span lang="en" class="multilang">Incorrect. The text does not suggest aggressive expansion by the highlanders.</span><span lang="fi" class="multilang">Väärin. Teksti ei viittaa siihen, että ylänköasukkaat laajentaisivat maanomistustaan aggressiivisesti.</span>]]></text> | |
</feedback> | |
</answer> | |
<answer fraction="0"> | |
<text><![CDATA[<span lang="en" class="multilang">Indigenous highlanders are indifferent to land ownership issues.</span><span lang="fi" class="multilang">Alkuperäisasukkaat ovat välinpitämättömiä maanomistuskysymyksiin nähden.</span>]]></text> | |
<feedback> | |
<text><![CDATA[<span lang="en" class="multilang">Incorrect. The text does not imply indifference; it highlights concern.</span><span lang="fi" class="multilang">Väärin. Teksti ei vihjaa välinpitämättömyyteen; se korostaa huolta.</span>]]></text> | |
</feedback> | |
</answer> | |
<answer fraction="100"> | |
<text><![CDATA[<span lang="en" class="multilang">Indigenous highlanders joined the ranks of those unable to sustain themselves on their land.</span><span lang="fi" class="multilang">Alkuperäiskansojen ylänköasukkaat liittyivät niihin, jotka eivät kykene elättämään itseään omalla maallaan.</span>]]></text> | |
<feedback> | |
<text><![CDATA[<span lang="en" class="multilang">Correct. The text indicates that indigenous highlanders are unable to sustain themselves, leading to concerns about land ownership.</span><span lang="fi" class="multilang">Oikein. Teksti osoittaa, että alkuperäisasukkaat eivät kykene elättämään itseään, mikä johtaa huoliin maanomistuksesta.</span>]]></text> | |
</feedback> | |
</answer> | |
<answer fraction="0"> | |
<text><![CDATA[<span lang="en" class="multilang">Indigenous highlanders have started renting out their land for profit.</span><span lang="fi" class="multilang">Alkuperäisasukkaat ovat alkaneet vuokrata maataan voiton tavoittelemiseksi.</span>]]></text> | |
<feedback> | |
<text><![CDATA[<span lang="en" class="multilang">Incorrect. The text does not mention renting out land as a widespread practice.</span><span lang="fi" class="multilang">Väärin. Tekstissä ei mainita maan vuokraamista yleisenä käytäntönä.</span>]]></text> | |
</feedback> | |
</answer> | |
</question> | |
</quiz> | |
Now, translate the following questions. Output the complete XML for all the questions: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment