Enhanced multilang

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

Enhanced multilang 2.2.0 (build 2012101000)

Moodle 2.2
Released: Saturday, 15 December 2012, 6:19 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.2.0 (build 2012101000)
Maturity
Release candidate
MD5 Sum
3c7b8d8717dfb836647a6a8bd7e95c17
Supported software
PHP 5.2, Moodle 2.2
  • Latest release for Moodle 2.2

Version control information

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

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