summaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-10 21:47:20 +0200
committerintrigeri <intrigeri@boum.org>2008-10-18 15:49:10 +0200
commite163b037bf3c9fa68be0971752e6d6584f8d55fd (patch)
treedb706eee011468db6b9b8ed01c0120f3cf613647 /doc/plugins
parent886f35153b0945ec39568c61d3e7451c18be6be8 (diff)
po plugin: move translatable pages to setup file, refactor
Replaced [[!translatable]] directive with po_translatable_pages setting. Moved istranslatable/istranslation code to helper functions leaving place for future caching and/or memoization. The PageSpec functions still work. Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/po.mdwn16
1 files changed, 9 insertions, 7 deletions
diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn
index 2b0fba628..20ca5c4a5 100644
--- a/doc/plugins/po.mdwn
+++ b/doc/plugins/po.mdwn
@@ -49,12 +49,13 @@ languages, such as:
Decide which pages are translatable
-----------------------------------
-The subset of "master" pages subject to translation is configurable:
+The `po_translatable_pages` setting configures what pages are
+translatable. It is a [[ikiwiki/PageSpec]], so you have lots of
+control over what kind of pages are translatable.
-- 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.
+The `*.LL.po` translations files are anyway not considered as being
+translatable, so you don't need to worry about excluding them manually
+from this [[ikiwiki/PageSpec]].
Internal links
--------------
@@ -125,12 +126,13 @@ TODO
Optimization
------------
-Move `match_istranslation` and `match_istranslatable` code into helper
-functions, and pre-compute what can be early in the build process:
+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
+... and/or memoize `istranslation`/`istranslatable` function calls.
+
Display available translations
------------------------------