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

In statistics report, multilang for role names is not supported in headers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3, 3.2.3, 3.3, 3.4
    • Fix Version/s: 3.2.4, 3.3.1
    • Component/s: Filters, Reports
    • Labels:
    • Testing Instructions:
      Hide
      1. Have the Statistics switched to enabled (Administration > Site administration > Advanced features)
      2. Open a course an enrol a combination of students, teachers, and editing teachers
      3. Run generate_stats.php
      4. Run cron
      5. Install at least another language pack.
      6. Enable filter_multilang and apply to both Content and Headings
      7. As admin, in admin/roles/manage.php (Users > Permissions > Define roles) modify the student role's custom full name with a string containing those language tags, for example <span class="multilang" lang="en">Learner</span><span class="multilang" lang="ru">Ученик</span>
      8. Login as a teacher and open your course
      9. Navigate to the course statistic page (Administration > Course administration > Reports > Statistics) and view the page in English
        1. Open the Report type dropdown Confirm that the "All activity" reports all include the name of each role in English only
      10. Select Learner from the "Report type" pulldown and wait for the report to be generated
      11. Make sure the multilang is working when you switch languages
      Show
      Have the Statistics switched to enabled (Administration > Site administration > Advanced features) Open a course an enrol a combination of students, teachers, and editing teachers Run generate_stats.php Run cron Install at least another language pack. Enable filter_multilang and apply to both Content and Headings As admin, in admin/roles/manage.php (Users > Permissions > Define roles) modify the student role's custom full name with a string containing those language tags, for example <span class="multilang" lang="en">Learner</span><span class="multilang" lang="ru">Ученик</span> Login as a teacher and open your course Navigate to the course statistic page (Administration > Course administration > Reports > Statistics) and view the page in English Open the Report type dropdown Confirm that the "All activity" reports all include the name of each role in English only Select Learner from the "Report type" pulldown and wait for the report to be generated Make sure the multilang is working when you switch languages
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-58577-statistics-report-header-multilang

      Description

      1. Have the Statistics switched to enabled (Administration > Site administration > Advanced features) and make sure data has been generated data to look up.
      2. Install at least another language pack.
      3. Enable filter_multilang and apply to both Content and Headings
      4. As admin, in admin/roles/manage.php (Users > Permissions > Define roles) modify the student role's custom full name with a string containing those language tags, for example <span class="multilang" lang="en">Learner</span><span class="multilang" lang="ru">Ученик</span>
      5. As a teacher, open the course statistic page (Administration > Course administration > Reports > Statistics)
      6. Select Learner from the "Report type" pulldown
      7. The multilang is not working

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lucaboesch Luca Bösch
                Reporter:
                johno John Okely
                Peer reviewer:
                Ankit Agarwal
                Integrator:
                Andrew Nicols
                Tester:
                John Okely
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Jul/17