Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: Multi-lingual Content filter.

Multi-lingual Content filter

From MoodleDocs
Revision as of 15:08, 11 December 2013 by German Valero (talk | contribs) (tidy up)

multilangsecond project is a Moodle filter. It is a more flexible version of multilang filter. It has an admin setting filter_multilangsecond_mode. If this setting is set to 'Yes' non html syntax can be used for multilang blocks like

{mlang en}English{mlang}{mlang bg}Bulgarian{mlang}

Otherwise language block is a serie of identical html tags with lang="XX" atributes:

< h1 lang="en">Heading in English

Please note that there should not be a space between '<' and 'hl', nor between 'hl' and '>' (but the documentation writer does not know how make it show properly) :( :(

Heading in English

< h1 lang="bg">Heading in Bulgarian

Please note that there should not be a space between '<' and 'hl', nor between 'hl' and '>' (but the documentation writer does not know how make it show properly) :( :(

Heading in Bulgarian

or

Paragraph in English

Paragraph in Bulgarian

Paragraph in Romanian

The old syntax with <lang> tags is valid too.