From 323d1ce2b99b5e326d3dc216c3c509d261c64f41 Mon Sep 17 00:00:00 2001 From: ddd Date: Tue, 17 Jul 2018 15:04:25 -0400 Subject: --- ...How_to_make_inline_and_po_work_together__63__.mdwn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 doc/forum/How_to_make_inline_and_po_work_together__63__.mdwn (limited to 'doc/forum') diff --git a/doc/forum/How_to_make_inline_and_po_work_together__63__.mdwn b/doc/forum/How_to_make_inline_and_po_work_together__63__.mdwn new file mode 100644 index 000000000..1b5dac760 --- /dev/null +++ b/doc/forum/How_to_make_inline_and_po_work_together__63__.mdwn @@ -0,0 +1,19 @@ +I want to setup a kind of a blog with the help of ikiwiki, which will contain pages in several languages. First I set it up and added some content. Index page contains an inline directive to show just the most recent "post", and it works flawlessly. Then I've enabled po plugin and rebuilt my blog. Unfortunately, I cannot get inline work properly, because it either captures some po/pot file, or not capture any file for a translation. So, how to make inline and po work together? + +Say, I have a following structure: + +index.mdwn + +sidebar.mdwn + +p001.mdwn + +p002.mdwn[[!inline pages="2019* and tagged(ru)" limit=1 actions=no]] + +p003.mdwn + +with the corresponding po/pot files. My index.mdwn contain only inline (besides a standard sidebar) to capture the latest (p003.mdwn) file: + +\[[!inline pages="p*" limit=1 actions=no]] + +I've tried to use many different pagespecs, different pages options (like page, glob and so on), even adding tags and trying to exclude pages without relevant tags (and po files contained different tags). But I'm lost completely. Sometime it worked for the master language, but didn't for translations; sometimes it showed only one translation for all languages. -- cgit v1.2.3