1 [[!if test="enabled(po)"
2 then="This wiki has po support **enabled**."
3 else="This wiki has po support **disabled**."]]
5 If the [[!iki plugins/po desc=po]] plugin is enabled, the regular
6 [[ikiwiki/PageSpec]] syntax is expanded with the following additional
7 tests that can be used to improve user navigation in a multi-lingual
10 * "`lang(LL)`" - tests whether a page is written in the language
11 specified as a ISO639-1 (two-letter) language code.
12 * "`currentlang()`" - tests whether a page is written in the same
13 language as the current page.
14 * "`needstranslation()`" - tests whether a page needs translation
15 work. Only slave pages match this PageSpec. A minimum target
16 translation percentage can optionally be passed as an integer
17 parameter: "`needstranslation(50)`" matches only pages less than 50%
20 Note that every non-po page is considered to be written in
21 `po_master_language`, as specified in `ikiwiki.setup`.
23 [[!meta robots="noindex, follow"]]