Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vedmaka/mediawiki-extension-mustache_i18n

Adds localization support for Mediawiki Mustache templates engine
https://github.com/vedmaka/mediawiki-extension-mustache_i18n

mediawiki mustache-templates template-engine

Last synced: about 1 month ago
JSON representation

Adds localization support for Mediawiki Mustache templates engine

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/vedmaka/mediawiki-extension-Mustache_i18n.svg?branch=master)](https://travis-ci.org/vedmaka/mediawiki-extension-Mustache_i18n)

# Intro

**Mustache_i18n** — extension for [Mediawiki](https://mediawiki.org) which adds i18n support for its templating engine.

# Installation

1. Clone this repository into `/your/mediawiki/extensions/Mustache_i18n` folder
2. Add this like to bottom of your `LocalSettings.php` file: `wfLoadExtension('Mustache_i18n')`
3. Done

# Usage

Extension provides you with two new helpers available directly in Mustache templates:

* `_` (dash) — process plain text message string
* `__` (double dash) — process parsed message string

# Examples

```html


Plain text string: {{ _ "my-i18n-message-string" }}
Parsed string: {{ __ "my-i18n-message-string" }}

```

See more at https://www.mediawiki.org/wiki/Extension:Mustache_i18n