]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/po_plugin_config_crasher.mdwn
22afa674da315c27ba7819e6491af42be4b7cbc4
[git.ikiwiki.info.git] / doc / bugs / po_plugin_config_crasher.mdwn
1 Saw a site using the po plugin crash with:
3         syntax error in pagespec "\"page(./tips/*)"
5 I suspect the relevant configuration is this:
7         po_translatable_pages: /index or /hugo or /hugo/keys or /about or /archive or /tips
8           or /talks or /imprint or /copyright or /blog or /posts  or /law or /quotes or /quotes/*
10 Config problems in ikiwiki.setup should really not cause the whole site
11 build to crash; this can make it hard to recover. --[[Joey]]
13 ---
14 I try to setup a small site with the auto-blog.setup and played a bit with it:
15 If I activate the po plugin and set po_translateable_pages to something meaningful (like the example: '* and !*/Discussion'),
16 then I'll get the same error
18     syntax error in pagespec "\"page(./posts/*)"
20 but only after a second run of the ikiwiki --setup site.setup
22 My try to get a clue: deleting any po and pot files and run the rebuild again - works fine  
23 run the rebuild a second time - error as above
25 tune any of the pagespec variables in the setup and at the inline directives of the blog or sidebar dosn't change anything
26 except leaving the po_translateable_pages empty, than the rebuild works and doesn't create any po files (as expected).
28 Is this helpful or have I done anything stupid ? -- Michael