ikiwiki/ plugins/ contrib/ linguas (third-party plugin)

Plugin: linguas
Author: Jordà Polo
Enabled by default: no
Included in ikiwiki: no

Linguas

Linguas is a plugin for ikiwiki that allows translations of wiki pages.

Download: linguas.pm (2006-08-21).

Usage

Translatable pages and translations must have the following format: pagename.$LANG, where $LANG is a ISO639-1 (two-letter) language code. To enable linguas, add the following line in the source code of the page:

[[linguas ]]

Note that linguas is only required in one of the pages (the original, for instance); the rest of translations will be automatically updated. Additionally, it is also possible to specify the title of the translation:

[[linguas title="Translated title"]]

Template

This is the template code that should be added to templates/page.tmpl:

<TMPL_IF NAME="LINGUAS">
<div id="linguas">
<p class="otherlinguas"><TMPL_VAR NAME="OTHERLINGUAS"></p>
<ul>
<TMPL_LOOP NAME="LINGUAS">
<li><TMPL_VAR NAME=LINK></li>
</TMPL_LOOP>
</ul>
</div>
</TMPL_IF>

TODO/Known Problems

Examples