This filter is a more flexible version of Moodle multilang filter.
It has an admin setting filter_multilangsecond_mode.
One of three possible choices can be selected by this setting:
In case of HTML syntax the language block is a sequence of identical html tags with lang="XX" attributes:
or
Paragraph in English
Paragraph in Bulgarian
Paragraph in Romanian
The old syntax with
In case of Non HTML syntax the language block looks like this:
{mlang en}English{mlang}{mlang bg}Bulgarian{mlang}
Each language dependent string is enclosed by {mlang xx} and {mlang} elements. Between closing {mlang} element and the next opening {mlang yy} element must not be any other symbols, or html tags. Avoid to insert spaces, line or paragraph brakes between {mlang}{mlang yy} elements in language blocks.
When the Both option is chosen for filter_multilangsecond_mode setting, the filter processes the strings twice. First time to replace the non HTML language blocks and second time to replace the HTML language blocks. For performance reasons choose Both option only if you really need both syntaxes.