multilang not working in Non edit mode

Issue #219 resolved
Núria Costa created an issue

We use in some courses the “Tiles” format and the multi-langual content plugin v2 (https://moodle.org/plugins/filter_multilang2).

When we turn on the edition mode, the multi-lingual plugin works ok. When we turn off the edit mode the multilingual marks appears in the titles and in the content.

moodle version: Moodle 4.3.3+ (Build: 20240320) Boost Union theme

Comments (5)

  1. David Watson repo owner

    Hi Núria I am not sure this is a tiles specific issue. That is, if I create a test course in topics format, the issue seems to be the same there. Can you confirm?

    Also you may want to experiment with adding this to config.php as it seemed to work for me. I’m not saying it’s a solution, but it may help:

    $CFG->stringfilters = 'multilang2';
    $CFG->filterall = 1;
    

    There is a function filter_get_string_filters() which looks at these when deciding which filters to apply to string fields

  2. Núria Costa reporter

    Hi David,

    In our case with the topic format works well. I’ve just changed the format in the same course and the string is OK.

    And with Edit Mode the tags in title are correctly

  3. David Watson repo owner

    Thanks for confirming Núria. I have a fix which will go into the next releases for 4.3/4.4 in the next few days and 4.1/4.0 thereafter.

  4. Log in to comment