Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vedmaka/mediawiki-extension-mustache_i18n
- Owner: vedmaka
- Created: 2016-07-30T22:38:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T19:34:21.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T15:56:14.504Z (3 months ago)
- Topics: mediawiki, mustache-templates, template-engine
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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