Extension:Mustache i18n

The Mustache_i18n extension adds internationalization support to Mustache templating engine integrated into MediaWiki.

Usage
After being installed this extension add two "helpers" to Mustache engine:


 * _ (underscore) — process provided message key and returns plain string
 * __ (double underscore) — process provided message key and returns parsed string

Examples:

Limitations

 * Parametrized messages are not supported
 * Any other output formats except plain and parsed are not supported
 * Templates cache can lead to messed up messages and localizations mustache for users. In general it is not Mustache_i18n problem, but templating system itself.

Warnings
Please note: due lack of hooks in MediaWiki templating code this extensions use its own TemplateParser class by replacing classes loading list (via $wgAutoloadLocalClasses). This should not be a big problem, but can lead to confusing situation if you'll forget to update this extension after new MediaWiki release.