Quiz results page with mixed languages

Quiz results page with mixed languages

Ralf Hilgenstock發表於
Number of replies: 6
Core developers的相片 Particularly helpful Moodlers的相片 Translators的相片

I found a mix of German and English language strings on a quiz results page. I remember that we had such a problem long time ago, but I didn't remember the reason and solution.
Language package is up to date and string is translated. Cache was cleared. Moodle LTS version 3.9.14.



評比平均分數: -
In reply to Ralf Hilgenstock

Re: Quiz results page with mixed languages

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Hi Ralf,

This happens when a question has been created when teacher was using one language, and question is viewed when using another language. Not a bug. Example below has a mix of English and French.

評比平均分數:Useful (1)
In reply to Joseph Rézeau

Re: Quiz results page with mixed languages

Ralf Hilgenstock發表於
Core developers的相片 Particularly helpful Moodlers的相片 Translators的相片

Hi Joseph,

ok. That was the case I remember now. Users are wondering about this snd some are confused. When a Chinese author creates courses and the users speak English it will be a real problem with Chinese text  between English text strings.

Is there a good reason for this? Otherwise its a  bug for me.

In reply to Ralf Hilgenstock

Re: Quiz results page with mixed languages

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Hi Ralf,

This is not a bug. When a teacher creates a question, they should set their current language to the same language as the text and contents of the question they are creating. That is the only way to avoid subsequent mixture of languages.

But of course it's always possible to change the wording of the Combined feedback strings (For any correct response "Your answer is correct." For any partially correct response "Your answer is partially correct."
For any incorrect response "Your answer is incorrect.") by editing the questions at any further time.

Hope that helps.

評比平均分數:Useful (1)
In reply to Joseph Rézeau

Re: Quiz results page with mixed languages

Ralf Hilgenstock發表於
Core developers的相片 Particularly helpful Moodlers的相片 Translators的相片
Hi Joseph
I disagree here. The system lang string should be all the time in the language that is set for the course, for the activity (new feature in 4.1) or the user set as preferred.
I will create a bug tracker entry  https://tracker.moodle.org/browse/MDL-75062

Ralf
In reply to Ralf Hilgenstock

Re: Quiz results page with mixed languages

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Hi Ralf,

I still do not consider this as a bug, but a feature that needs to be clearly explained and understood.

When a teacher creates a question (MCQ and some other types), the 3 Combined Feedback fields are automatically pre-filled with the 3 strings "Your answer is correct." etc. Logically, those 3 fields are pre-filled with strings in the language that is currently set.

So, those 3 pre-filled strings are saved (in the language current when the question is created) when the question is saved... and they will appear in that original language when the question is viewed later on, whatever the language is set to at time of viewing.

It is the teacher's responsibility, when creating questions, to make sure that the language of those 3 strings will match the language of the question text (and the answers) not the currently set language.

In reply to Joseph Rézeau

Re: Quiz results page with mixed languages

Marcus Hoberg發表於

Hi Ralf and Joseph,

I see your point, Joseph, that the question text should be in the same language as the respective feedback text. But the communication of the fact, that the text is put in automatically in respect of the author langauge setting might be better communicated, or even voluntary (chosen by checkbox?). I think that 99% of the authors would be fine with the standard text in the user´s language.

On the other hand: If you choose "right answers" in test "review options", the displayed text ("The correct answer is:") is standard text, and not user text. So we still might have a mixture of languages:


Consequently, this text also might be handled like the feedback.