X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/79d6f52d307aa587ef63ffc0aa04ab5070bf15cc..886f35153b0945ec39568c61d3e7451c18be6be8:/doc/plugins/po.mdwn?ds=inline diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn index 991f25c06..2b0fba628 100644 --- a/doc/plugins/po.mdwn +++ b/doc/plugins/po.mdwn @@ -46,6 +46,16 @@ languages, such as: 'de' => { 'name' => 'Deutsch', } } +Decide which pages are translatable +----------------------------------- + +The subset of "master" pages subject to translation is configurable: + +- a `[[!translatable ]]` directive, when put on a page, makes it + translatable +- to set at once a bunch of pages as being translatable, use this + [[ikiwiki/directive]] with the `match=PageSpec` argument. + Internal links -------------- @@ -112,6 +122,15 @@ lighttpd unfortunately does not support content negotiation. TODO ==== +Optimization +------------ + +Move `match_istranslation` and `match_istranslatable` code into helper +functions, and pre-compute what can be early in the build process: + +- the list of translatable (master) pages +- for every translatable page, the list of slave pages + Display available translations ------------------------------ @@ -131,17 +150,6 @@ implemented as a loop, a page using it should depend on any "master" and "slave" pages whose status is being displayed. -Decide which pages are translatable ------------------------------------ - -The subset of "master" pages subject to translation must be -configurable: - -- a `[[!translatable ]]` directive, when put on a page, makes it - translatable -- to set at once a bunch of pages as being translatable, use this - [[ikiwiki/directive]] with the `match=PageSpec` argument. - Automatic PO files update ------------------------- @@ -163,6 +171,8 @@ The latter can be implemented by making any "slave" page depend on the corresponding "master" page. The `add_depends` function can achieve this, if used in a **FIXME** hook. +The POT files should not be published on the wiki. + UI consistency: rename "Edit" button on slave pages ---------------------------------------------------