Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.2.2
-
Component/s: Filters
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_32_STABLE
-
Fixed Branches:MOODLE_31_STABLE, MOODLE_32_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-58180-master -
Pull Master Diff URL:
Description
In report/stats/ role names displayed in the pulldown menu are not passing format_text and therefore are not localized. This is because of the role names not being processed by format_text in stats_get_report_options.
FULL STEPS
Make sure Statistics have be enabled (Administration > Site administration > Advanced features) and generated data to look up.
You got to have at least two of this language packs installed, the Multilang 2 plugin (https://moodle.org/plugins/filter_multilang2) installed and set Multi-Language Content (v2) filter to "on" for content and headings.
Have a role having a custom full name with language tags (i.e. "{mlang de}Teilnehmer/in{mlang}{mlang fr}Participant/e{mlang}{mlang en}Student{mlang}{mlang it}Studente{mlang}{mlang es}Estudiante{mlang}") and call report/stats/ in a course.
WHAT YOU EXPECTED
In the pulldown menu you get to see the options
Alle Aktivitäten (Trainer/innen und Teilnehmer/innen)
Alle Aktivitäten (Zugriffe und Beiträge) Trainer/in
Alle Aktivitäten (Zugriffe und Beiträge) Teilnehmer/in
Zugriffe (alle Rollen)
Beiträge (alle Rollen)
when page language is set to de.
WHAT ACTUALLY HAPPENS
You get to see the options
Alle Aktivitäten (Trainer/innen und Teilnehmer/innen)
Alle Aktivitäten (Zugriffe und Beiträge) Trainer/in
Alle Aktivitäten (Zugriffe und Beiträge) {mlang de}Teilnehmer/in{mlang}{mlang fr}Participant/e{mlang}{mlang en}Student{mlang}{mlang it}Studente{mlang}{mlang es}Estudiante{mlang}
Zugriffe (alle Rollen)
Beiträge (alle Rollen)
in the pulldown menu.