Setup:
Go to Site administration > Plugins > Filters > Manage filters
In the dropdown menu for multi-language content > select 'On'.
Select 'Content and headings' in the 'Apply to' column.
Go to Site administration > Plugins > Filters > Common filter settings and ensure that 'Filter navigation with system context' is turned on.
Go to a Course > Add a new Lesson > Add a question page > Multichoice question > Add the required 2 answers
Copy these into the title and content fields (for the content field, you need to do View > Source code)
<p>
<span class = "multilang" lang= "en" >how are you</span>
<span class = "multilang" lang= "fr" >comment vas-tu</span>
</p>
Test:
Go into the database > table `mdl_lesson_answers` > delete the 2 answers added earlier
Go into the Lesson page > the title should be visible now > ensure there is only 1 language shown in both the title and the content
Code verified against automated checks.
Checked MDL-84721 using repository: https://github.com/meridiumtechnologies/moodle.git
MOODLE_404_STABLE (0 errors / 0 warnings) [branch: 404_STABLE-MDL-84721-MultilangFilterOnLessonPageTitles | CI Job ]
MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-84721-MultilangFilterOnLessonPageTitles | CI Job ]
main (0 errors / 0 warnings) [branch: main-MDL-84721-MultilangFilterOnLessonPageTitles | CI Job ]
More information about this report
Built on: Tue Apr 8 01:38:35 UTC 2025
The titles on lesson pages are not parsed by the multilang filter.