-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.2, 2.8.5
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
wip-
MDL-49061-master -
Hello.
We've had the below multi-language issue reported by a client -
We have noticed the multi-language feature doesn't work on the Activity Completion Report within a course (Course Administration>Report>Activity Completion), as it messes up the HTML code.
It seems that moodle wishes to add the activity title onto a title attribute of an <a> tag, but because the activity ttle includes html code:
<span class=”multilang” lang=”en” >TITLE</span><span class=”multilang” lang=”cy” >WELSH TITLE</span>
The generated code becomes:
<a href=”…..” title=”<span class=”multilang” lang=”en” >TITLE</span><span class=”multilang” lang=”cy” >WELSH TITLE</span>”>…</a>
Which plays havoc with the browser’s interpretation of the html.
To recreate the issue:
1. Turn on the multi-language filter (and change the dropdown to “Content and headings”)
2. Create a new course
3. Enable activity tracking within the course (in the course settings)
4. Create some new activities in the course (using the <span class=”multilang” lang=”cy”>WELSH</span><span class=”multilang” lang=”en”>ENGLISH</span> format)
5. View the activity completion report - Course Administration>Report>Activity Completion
Version Moodle 2.7.1+
Please let me know if you need any further information.
Thanks
Gary
- duplicates
-
MDL-50703 Module names are not translated in course completion report
- Closed