]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/po_plugin_config_crasher.mdwn
escape pagespec so the HTML is more legible
[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 ---
15 I try to setup a small site with the auto-blog.setup and played a bit with it:
16 If I activate the po plugin and set po_translateable_pages to something meaningful (like the example: `* and !*/Discussion`),
17 then I'll get the same error
19     syntax error in pagespec "\"page(./posts/*)"
21 but only after a second run of the ikiwiki --setup site.setup
23 My try to get a clue: deleting any po and pot files and run the rebuild again - works fine  
24 run the rebuild a second time - error as above
26 tune any of the pagespec variables in the setup and at the inline directives of the blog or sidebar dosn't change anything
27 except leaving the po_translateable_pages empty, than the rebuild works and doesn't create any po files (as expected).
29 Is this helpful or have I done anything stupid ? -- Michael