po: added a needstranslation() pagespec
[ikiwiki.git] / doc / ikiwiki / pagespec / po.mdwn
1 [[!if test="enabled(po)"
2      then="This wiki has po support **enabled**."
3      else="This wiki has po support **disabled**."]]
4
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
8 wiki:
9
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.
16
17 Note that every non-po page is considered to be written in
18 `po_master_language`, as specified in `ikiwiki.setup`.
19
20 [[!meta robots="noindex, follow"]]