Additional HTML not working with multilingual filter

Additional HTML not working with multilingual filter

Josef Milon - මගින්
Number of replies: 0

Hi all,

There is an option to add HTML to all pages (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 is displayed exactly as written, i.e. "{mlang en}text1{mlang}{mlang cs}text2{mlang}", including the braces;
  • <span lang="en" class="multilang">text1</span><span lang="cs" class="multilang">text2</span>: it shows both texts in one row "text1text2" no matter what language is selected
I also tried to write braces/brackets as a HTML entity - the result was same as mentioned above.
I tested it in Moodle 3.1 and 3.5 with the same results. I tried to find the strings in language customisation packs, but without any result. In filter settings, I tried both "Content" and "Content and headings" - nothing has changed.

Any help here would be very much appreciated.

Thank you,
Josef

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -