-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
1.9.9
-
None
-
MySQL
-
MOODLE_19_STABLE
-
Hello,
I am working with Moodle 1.9.9 (1.9.11 hasn't changed concerning this issue) on a multilingual Moodle website. There I noticed the following:
When you create a true/false question, then the answer "True" and "False" is hard-coded in the database depending on course language or user language. If you alter the question or do export this question into another course, the language keeps the same.
I created a true-false question in German, did an import into an English course, and it kept saying "Wahr" and "Falsch" instead of the English terms True and False.
Same happened on import of such a course for translation into Finnish and Bulgarian, the German "Wahr" and "Falsch" stayed the same.
Wouldn't it be better to just get the translation out of the language pack each time viewing the question instead of hard-coding it?
On my Moodle-website I just did it that way, for displaying the label I used get_string('true','quiz) to get the right translation. (modification in question/truefalse/questiontype.php around line 195)
Regards, Daniel
- duplicates
-
MDL-11384 Make the truefalse question type work better in the presence of the multilang filter
- Closed