X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=blobdiff_plain;f=ikiwiki%2Fpagespec%2Fpo.mdwn;fp=ikiwiki%2Fpagespec%2Fpo.mdwn;h=e0264dd502e4f772eda54e17df9580cd8570b62c;hp=0000000000000000000000000000000000000000;hb=21bc7812e43447c6184393b6af03440ec48da227;hpb=e7cd66b8cf72a928b847f78bf8ba0edbf02499ea diff --git a/ikiwiki/pagespec/po.mdwn b/ikiwiki/pagespec/po.mdwn new file mode 100644 index 0000000..e0264dd --- /dev/null +++ b/ikiwiki/pagespec/po.mdwn @@ -0,0 +1,16 @@ +[[!if test="enabled(po)" + then="This wiki has po support **enabled**." + else="This wiki has po support **disabled**."]] + +If the [[!iki plugins/po desc=po]] plugin is enabled, the regular +[[ikiwiki/PageSpec]] syntax is expanded with the following additional +tests that can be used to improve user navigation in a multi-lingual +wiki: + +* "`lang(LL)`" - tests whether a page is written in the language + specified as a ISO639-1 (two-letter) language code. +* "`currentlang()`" - tests whether a page is written in the same + language as the current page. + +Note that every non-po page is considered to be written in +`po_master_language`, as specified in `ikiwiki.setup`.