I will try to summarize the current state of this problem and I will be glad if somebody will discuss it in this forum.
There are many moodle sites which have to provide language dependent content. I mean content which must be shown in the user's language and change if the user language is changed.
1. The only way to provide such kind of content now is the multilanguage filter. But there are some problems with this filter. Much effort is done to improve it, but the improvement is not integrated yet https://tracker.moodle.org/browse/MDL-32257 The reason this improvement was not integrated is lack of testing and unresolved dependencies of this filter from other functions in moodle code. (PARAM_TEXT cleaning in lib/moodlelib.php)
There are ideas to change the multilanguage filter syntax to non-html markup such as:
{multilang en}English{multilang}{multilang de}Deutsch{multilang}
(Petr Škoda in a comment on MDL-32257)
or syntax based on closed <span> tags as:
<span class="multilangwrapper-start" />
<span class="multilangblock-start multilang-en" />
<h1>Note that you can have anything here now</h1><p>and it is valid</p>
<span class="multilangblock-end multilang-en" />
<span class="multilangblock-start multilang-cs" />
<h3>Even completely different HTML structure for different languages</h3>
<span class="multilangblock-end multilang-cs" />
<span class="multilangwrapper-end" />
(https://moodle.org/mod/forum/discuss.php?d=179540&parent=855283 )
Unfortunately there is no discussion on these ideas and no development is made to implement them.
2. There are other ideas to provide language dipendent content.
Two ideas are suggested here: https://moodle.org/mod/forum/discuss.php?d=175008
I think it would be good to add a new language setting for all contexts in Moodle (category, course, resource and activity) with value: 'All languages' or one of the installed languages. If the value of this setting is 'All languages' the Moodle context will be always shown, but if a language is chosen this context is shown only if the user's current language is the same as the language setting of this context. May be users with editing capability must have access to these contexts all the time despite of their current language.
I read another idea in a forum here (but I can't find it now to cite) to add a similar language setting to all textual parameters in Moodle.
Thank you for reading this post!
What do you think about?
Which of these ideas to improve multilingual capability of Moodle is best and is worth to implement?