Multilingual filters not working with "Additional HTML"

Multilingual filters not working with "Additional HTML"

av Jim Muirhead -
Galle vástádusa: 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.
Gjennomsnittlig vurdering:Useful (2)
Vástádussan geasa: Jim Muirhead

Re: Multilingual filters not working with "Additional HTML"

av Michael Milette -
Bilde av Core developers Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers Bilde av 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