Enhanced multilang

Filters ::: filter_multilangenhanced
Maintained by Valery Fremaux
An alternate multilang filter that supports content with nested span.

Enhanced multilang 2.4.0 (build 2012101000)

Moodle 2.4, 2.5, 2.6
Released: Friday, 9 May 2014, 7:04 AM
$Id: README.txt,v 1.6 2006/12/12 10:39:17 diml Exp $

WHy it is an enhanced filter:

Major enhancement is done on the lang block processing algorithm. The actual algorithm
supports nested tags that may mark language c ontent or other text formatting
aspects. The standard algorithm fails to deal with several nested tags,
because of the nesting effect on a single RegExp fetch ahead.

The enhanced algoithm is aware fo span nesting and will correctly fetch ahead the
actual corresponding closing
tag for the language block start marker.

When using the old syntax, with tag, a standard single regexp fetch ahead is performed.

Other changes:

This filter processes the lang blocks one by one, eliminating all unwanted (non matching)
languages.

Todo:
Check wether a default language version feature can be added back.

To Install it:
- Enable if from "Administration/Filters".

To Use it:
- Create your contents in multiple languages.
- Enclose every language content between:
Hello!
This text is common for every language because it's out from any lang block.
Bye!

- Will print, if current language is English:
Hello!
This text is common for every language because it's out from any lang block.
Bye!

- And, in Spanish, it will print:
Hola!
This text is common for every language because it's out from any lang block.

Version information

Version build number
2012101000
Version release name
2.4.0 (build 2012101000)
Maturity
Release candidate
MD5 Sum
321373048ec42f51fabe351d7db029a7
Supported software
Moodle 2.4, Moodle 2.5, Moodle 2.6
  • Latest release for Moodle 2.4
  • Latest release for Moodle 2.5
  • Latest release for Moodle 2.6

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
MOODLE_24_STABLE

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