Multi-lingual Content filter: Difference between revisions
From MoodleDocs
(Created page that links in "Moodle Docs for this page" while setting this add-on filter) |
(tidy up) |
||
Line 6: | Line 6: | ||
Otherwise language block is a serie of identical html tags with lang="XX" atributes: | Otherwise language block is a serie of identical html tags with lang="XX" atributes: | ||
h1 lang="en">Heading in English</h1 | |||
<h1 lang="en">Heading in English</h1> | <h1 lang="en">Heading in English</h1> | ||
h1 lang="bg">Heading in Bulgarian</h1 | |||
<h1 lang="bg">Heading in Bulgarian</h1> | <h1 lang="bg">Heading in Bulgarian</h1> | ||
Revision as of 14:58, 11 December 2013
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</h1
Heading in English
h1 lang="bg">Heading in Bulgarian</h1
Heading in Bulgarian
or
Paragraph in English
Paragraph in Bulgarian
Paragraph in Romanian
The old syntax with <lang> tags is valid too.