X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/cbaee7ec1ca1fc00437340384e9852069ef11461..dc149441fade1b870ea731d550fe1315f2926bbc:/doc/plugins/po/discussion.mdwn diff --git a/doc/plugins/po/discussion.mdwn b/doc/plugins/po/discussion.mdwn index 6eddd5378..9f99880dc 100644 --- a/doc/plugins/po/discussion.mdwn +++ b/doc/plugins/po/discussion.mdwn @@ -726,11 +726,36 @@ I am trying to wrap my head around l10n with ikiwiki. Set up a test site, l10n i Now when inlining a bunch of pages, no matter what inline template I use all links are going to the master language, the slave being ignored on all levels I tried. -Trying to use currentlang() inside the inline directive - I get no pages or links to pages at all. - \[[!inline pages=\"man/* and currentlang() and !*/sidebar and !*/b and !*.*\" template=\"titlepage\" archive=\"yes\" quick=\"yes\" show=\"0\" sort=\"mtime\" reverse=\"no\"]] +Trying to use currentlang() inside the inline directive to force the current setting in ikiwiki.setup - I get **no pages or links** to pages at all. +\[[!inline pages=\"man/* and currentlang() and !*/sidebar and !*/b and !*.*\" template=\"inlinepage\" archive=\"yes\" quick=\"yes\" show=\"0\" sort=\"mtime\" reverse=\"no\"]] -Turning meta title on slave translation pages on and off - no change. -Turning usedirs on and off - no change. +Turning meta title on slave translation pages on and off - **no change**. +Turning usedirs on and off - **no change**. +Testing with different inline templates - **no change**. +Trying the use of tags on the slave language pages - **tagged() doesn't match any tagged pages**. -Can this be related to the templates used by inline not being localized? +I tried everything I could think of being the cause. +Could this be related to the templates used by inline not being localized? Any hints wether I am currently running into some dead end with ikiwiki regarding template l10n here would be greatly appreciated. + +Besides: When using the map instead of the inline directive, regarding l10n all is working like it should, pitty is that for the kind of deployment I am heading for I will also need pages to be included with a custom template. --[[Boris]] + +# Does not show up in the setup + +Hello, I am not sure whether it's the right way to add a comment here, but I downloaded po4a from Debian repository and built it. Typing 'use Locale::Po4a::Po;' into a 'perl' session doesn't interrupt it -- I believe it is installed already. Yet in websetup there is no 'use po?' section. I am at a loss what to do. I am using nearlyfreespeech for hosting. --[[users/svetlana]] + +> It should be in a section headed "format plugin: po". If that doesn't appear, try +> `perl -MIkiWiki::Plugin::po -e ''` (or equivalently, `use IkiWiki::Plugin::po;` in +> an interactive Perl session) and see whether there are useful error messages. --[[smcv]] + +> > I had to set ikiwiki's INSTALL_BASE to ~/perl5, and install local::lib, to get the wiki to see Locale::Po4a::Po. What was helpful is `ikiwiki --setup wiki/ikiwiki.setup --wrappers` as it outputs the useful error message straight away if it can't find something in @INC. It is finally working now. --[[users/svetlana]] + +# Confuses a map + +The `\[[!map pages="*"]]` directive works in confused ways when po plugin is enabled. It lists items like this: + +- [foo](foo/index.en.html) + - [index.ru](foo/index.ru) + - [index.ja](foo/index.ja) + +I'm not sure what to do with it, I would like to be able to list pages only in one language. --[[users/svetlana]] 10:10AM February 8, 2017