Multilingual filters not working with "Additional HTML"

Multilingual filters not working with "Additional HTML"

by Jim Muirhead -
Number of replies: 1

Hi all,

I have a multilingual site (Moodle 3.8) and am wanting to have some multilingual text in the "Additional HTML" section of Moodle (admin/settings.php?section=additionalhtml).
The problem is that the multilingual filter is not processing the text:

I've tried:

  • {mlang en}text1{mlang}{mlang cs}text2{mlang}: this just shows the code.
  • <span lang="en" class="multilang">text1</span><span lang="cs" class="multilang">text2</span>: i This shows both texts in one row "text1text2" no matter what language is selected
The functionality is working throughout the site, just not in the Additional HTML section.

Any help here would be very much appreciated.
Average of ratings: Useful (2)
In reply to Jim Muirhead

Re: Multilingual filters not working with "Additional HTML"

by Michael Milette -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Jim,

Unfortunatlely, passing the Additional HTML settings through the filters is something that would need to be fixed in the code for your theme or in Moodle core code. I would suggest that you start by contacting your theme's developer and ask them to add support for it. Personally, I find it very useful for language and other filters like FilterCodes.

Best regards,

Michael Milette

Best regards,

Michael