Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49089

wrong qtype_multiplechoice answernumberingABCD display in Hebrew lang (rtl lang)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 2.5.9, 2.6.8, 2.7.5, 2.8.3, 3.3, 4.0
    • Quiz
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_33_STABLE, MOODLE_400_STABLE
    • MDL-49089_master
    • Hide
      1. Update local translation of token "localisedlistlables" inside the file langconfig.php to your local language preferred sequence of letters
        (In Hebrew: "א,ב,ג,ד,ה,ו,ז,ח,ט,י,כ,ל,מ,נ,ס,ע,פ,צ,ק,ר,ש,ת" )
      2. Clean Moodle's caches.
      3. Change UI language to your local language. ( Example: Hebrew ) Don't test it in English, since you will not see any difference.
      4. Go to the Question bank and create a new question type MultiChoice
      5. While editing the question, select ABCD for the "numbering the question" option. (In Hebrew It should be already displaying "א ב ג")
      6. Finish creating the question and save it.
      7. Use the question preview icon to view it displaying your local numbering sequence. (In Hebrew "א ב ג ד")
      Show
      Update local translation of token "localisedlistlables" inside the file langconfig.php to your local language preferred sequence of letters (In Hebrew: "א,ב,ג,ד,ה,ו,ז,ח,ט,י,כ,ל,מ,נ,ס,ע,פ,צ,ק,ר,ש,ת" ) Clean Moodle's caches. Change UI language to your local language. ( Example: Hebrew ) Don't test it in English, since you will not see any difference. Go to the Question bank and create a new question type MultiChoice While editing the question, select ABCD for the "numbering the question" option. (In Hebrew It should be already displaying "א ב ג") Finish creating the question and save it. Use the question preview icon to view it displaying your local numbering sequence. (In Hebrew "א ב ג ד")

    Description

      In multiple choice question with Hebrew Language (I guess every RTL language too) when choosing the A,B,C choice which is in Hebrew " א,ב,ג" choice (answernumberingABCD string)
      It suppose to display it within the answers but instead it shows the A,B,C see images, this was just checked in Moodle 2.8.3 and in previous versions too.
      Hope someone can confirm it and fix it, thanks a lot.
      Hope it's not duplicate couldn't find something about it.

      Nadav Kavalechik suggested this solution:

      moodle/question/type/multichoice/renderer.php

      case 'ABCD':
      $letters = explode(',', get_string('alphabet', 'langconfig'));
      $number = $letters[$num];//chr(ord('A') + $num);
      break;

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mikidream miki Alliel
              Tim Hunt Tim Hunt
              Votes:
              17 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.