]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/po_vs_templates.mdwn
cleaner bugfix in now available
[ikiwiki.git] / doc / bugs / po_vs_templates.mdwn
1 The po plugin's protection against processing loops (i.e. the
2 alreadyfiltered stuff) is playing against us: the template plugin
3 triggers a filter hooks run with the very same ($page, $destpage)
4 arguments pair that is used to identify an already filtered page.
5
6 Processing an included template can then mark the whole translation
7 page as already filtered, which prevented `po_to_markup` to be called on
8 the PO content.
9
10 Symptoms: the unprocessed gettext file goes unfiltered to the
11 generated HTML.
12
13 This has been fixed in my po branch.
14
15 > My commit dcd57dd5c9f3265bb7a78a5696b90976698c43aa updates the
16 > bugfix in a much more elegant manner. Its main disadvantage is to
17 > add an (optional) argument to IkiWiki::filter. Please review.
18
19 -- [[intrigeri]]
20
21
22
23 [[!tag patch]]