-
Bug
-
Resolution: Fixed
-
Minor
-
3.2.2
-
MOODLE_32_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
wip-
MDL-58180-master -
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.