Filters: Multi-lingual Content

filter_multilangsecond
Maintained by Picture of Vanyo GeorgievVanyo Georgiev
This filter is a more flexible version of multilang filter. One of three possible choices can be selected by the filter admin setting: HTML syntax, Non HTML syntax or Both. If the non html syntax is chosen language block looks like: {mlang en}English{mlang}{mlang bg}Bulgarian{mlang}. In case of Html syntax, language block is a sequence of identical html tags with lang="XX" attributes span or div or any other.

Multi-lingual Content 1.3

Release notes

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: * HTML syntax * Non HTML syntax or * Both In case of HTML syntax the language block is a sequence of identical html tags with lang="XX" attributes:

Heading in English

Heading in Bulgarian

or

Paragraph in English

Paragraph in Bulgarian

Paragraph in Romanian

The old syntax with tags is valid too. 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.
Moodle 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2

Version information

Version build number
2015101700
Version release name
1.3
Maturity
Beta
MD5 Sum
df41286598b0e83b29305ca444893516
Supported software
Moodle 2.4, Moodle 2.5, Moodle 2.6, Moodle 2.7, Moodle 2.8, Moodle 2.9, Moodle 3.0, Moodle 3.1, Moodle 3.2
  • This is the latest release for Moodle 2.4
  • This is the latest release for Moodle 2.5
  • This is the latest release for Moodle 2.6
  • This is the latest release for Moodle 2.7
  • This is the latest release for Moodle 2.8
  • This is the latest release for Moodle 2.9
  • This is the latest release for Moodle 3.0
  • This is the latest release for Moodle 3.1
  • This is the latest release for Moodle 3.2

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Filters

  1. Make sure you have all the required versions.
  2. Download and unpack the filter plugin.
  3. Place the folder (eg "myfilter") in the "filter" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation