When translating a quiz, the translated multichoice nodes end up with empty or 'messed up' questions and answers. Steps to reproduce:
0. enable translation on quiz and mutlichoice content types
1. create an english quiz
2. create an english multichoice question
3. select translate tab on the quiz and add a translation for it
-- at this point the quiz module will create french equivalents of all english questions
4. switch languages on quiz node and take the quiz
-- the question and answers will be messed up
I believe this is a result of inconsistant structure for the $question->alternatives object. Some lines were referencing ->alternatives['answer'] and ->alternatives['answer_format'] while others used ->alternatives['answer']['value'] and ->alternatives['answer']['format'] . I think I have a patch that seems to resolve this, but it I think there may be a better approach than the one I used in getNodeProperties to create the object.
Comment | File | Size | Author |
---|---|---|---|
#2 | multichoice_i18n_v2.patch | 5.1 KB | joel_osc |
multichoice_i18n.patch | 3.1 KB | joel_osc | |
Comments
Comment #1
joel_osc CreditAttribution: joel_osc commentedIgnore this patch, it still has some issues...a new one is on the way.
Comment #2
joel_osc CreditAttribution: joel_osc commentedThis one should be complete.
Comment #3
djdevin