I seem to be running into limitations with the standard moodle language content tag (<span class="multilang" lang="en"></span>)
In the attached question, the appropriate language is not properly displayed in the General feedback. While there is nothing in between the </span><span class="multilang" lang="fr">, and there are no extra spaces inside the tags, it appears some of the other HTML coding in the text may be throwing this off?
The same text, but with the Multi-Language Content (v2) tags works as expected. (shown under the black horizontal rule...)
I note that the new TinyMCE editor has a nasty habit of inserting characters to sanitize HTML which further complicates troubleshooting the standard moodle language content tag, and have disabled it on my site for now.
I have largely been using the standard moodle language content tag thinking it should always just "work" as it is part of moodle, and so not dependent on the Multi-Language Content (v2) plugin being updated. But is it time to bite the bullet and switch? It would allow less technical editors to make updates to the site...
I use Cloze questions extensively but I believe Cloze questions do not work with the Multi-Language Content (v2) plugin?
- Are there any other gotcha's that I should be aware of?
- Should I just be looking at switching completely to the Multi-Language Content (v2) plugin, except for Cloze questions (for now)?
- Are there plans to make the Multi-Language Content (v2) plugin work with cloze questions?
- Are there plans to make the Multi-Language Content (v2) plugin part of standard moodle?
John
Moodle 4.5.1+ (Build: 20241219)
PHP 8.3.6
Apache 2.4.58
Adaptable Theme 405.1.1
Multi-Language Content 2.0.5.1 (Always use parent languages, including 'en')
The multi-lang filter is enabled.
The multi-lang filter is set to apply to content and headings in 'Manage filters' in the Site administration'.
There are no extra characters between language span tags.
Course setting is not set to "force" some language.
No extra spaces in language span tag