At http://svetlana.nfshost.com/index.en.html some pages are not marked as translatable though I used '*' as po plugin pagespec. Also I edited page.tmpl and commented out the backlinks section, but it still shows on some pages. These two defects are probably related. Please advise how to troubleshoot. I think rebuilding the wiki is not affecting this problem. --svetlana 22:21:46 AEDT February 9, 2017
Did you expect http://svetlana.nfshost.com/irc/freenode/index.en.html to be translatable into Russian and not have backlinks, for instance?
This looks like you have changed configuration/templates and not (successfully!) done a full rebuild since then - but you said "I think rebuilding the wiki is not affecting this problem" so presumably you have tried to rebuild the wiki, it just didn't work (or didn't completely work). What exact command did you use, and what was its output?
Yes, I expected http://svetlana.nfshost.com/irc/freenode/index.en.html to be translatable into Russian and not have backlinks.
$ ikiwiki --rebuild --verbose --setup ~/wiki/ikiwiki.setup
http://svetlana.nfshost.com/rebuild.txt
I removed /home/public (the wiki build destination) and rebuilt it, re-enabled po plugin with " or / or // or ///" in its pagespec settings, but it still only picks up root level pages. Subpages are not marked as translatable. This is a problem.
The backlinks issue seems to not have resolved itself, either.
Remarkably, removing sandbox.pot and sandbox.ru.po from ~/wiki made the sandbox page not translatable. It seems that the po plugin is looking for foo/bar.mdwn and foo/bar.pot and foo/bar.po.ru rather than foo/bar/index.mdwn, foo/bar/index.ru.po, foo/bar/index.pot and so on?
I tried to disable "use page/index.mdwn source files" and rebuild the wiki, but now I have "foo/bar/index/" URIs and
?bar
is an unknown link marked with a question mark, so I'm going to fix it all up in the source files by hand and see if it helps...Fixed the .po marking pages as translatable --
un-ticked "use page/index.mdwn source files"
ran this script, committed, and pushed:
The problem with backlinks still stays so far.
Turns out always listing backlinks (if they exist) is intended behaviour. I followed "allow disabling backlinks" todo page by editing ~/git.ikiwiki.info/IkiWiki/Render.pm
Here is line in config:
and then "perl Makefile.PL ;$MAKE;$MAKE install" . But then running 'ikiwiki --rebuild --setup ~/wiki/ikiwiki.setup' makes no difference. Why ...
I misread "nobacklinks" as "no backlinks". Turns out setting it to 0 after applying that patch fixes the problem. This whole discussion is now resolved in short term.
In long term, there are a few remaining questions.
Your guess is as good as mine. That configuration is really unusual (I'm not quite sure why we even have it as an option), and the po plugin is also unusual (not many people go to the effort of translating their wikis), so it seems likely that you're the first person to try the two together.
Not that I know of. If it could, it would likely require you to run
ikiwiki-transition
, but that tool doesn't seem to have any modes that seem relevant.Almost certainly no.
Discussion on discussion in 2009, before the (then third party) po plugin was merged, says it is known not to work in that configuration.
From the above I think we maybe could