Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.4, 3.1, 3.2
-
Component/s: Calendar
-
Testing Instructions:
-
Affected Branches:MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
Fixed Branches:MOODLE_32_STABLE, MOODLE_33_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-54887-master -
Pull Master Diff URL:
Description
Hi there,
a teacher told us that he uses the multilanguage tags in assignment titles. The assignment due dates are exported to the Moodle calendar. When he exports the calendar or subscribe to it via ICS, the multilanguage tagged strings are displayed as plain text and aren't exported in the user's language.
For example:
Assignement title: <span lang="en" class="multilang">Assignment 1</span><span lang="de" class="multilang">Aufgabe 1</span>
Result in Export right now: <span lang="en" class="multilang">Assignment 1</span><span lang="de" class="multilang">Aufgabe 1</span>
Result as it should be exported if user's language is set to German: Aufgabe 1
Hint for improvement:
The tagged string should be processed by the function format_string() before export is done.