From 54280d02153d033fe87ffd6fea71d08fc1ed10a4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 19 Jul 2009 23:01:43 +0200 Subject: bad po plugin bug --- doc/plugins/po.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc/plugins/po.mdwn') diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn index 2d59c03fa..156cb6cb3 100644 --- a/doc/plugins/po.mdwn +++ b/doc/plugins/po.mdwn @@ -260,6 +260,23 @@ order, as `po_slave_languages` is a hash. It would need to be converted to an array to support this. (If twere done, twere best done quickly.) --[[Joey]] +Re-render bug +------------- + +If .ikiwiki is deleted and a wiki is rebuilt from scratch, and +po has created po files before, something wrong happens: + +> joey@gnu:~/src/ikiwiki/po/html>ls -l index* +> -rw-r--r-- 1 joey joey 1159 Jul 19 22:51 index.html +> +> index.de: +> total 4 +> -rw-r--r-- 1 joey joey 1829 Jul 19 22:51 index.html + +index.de/index.html contains the raw po file shoved into +page.tmpl. I have only gotten as far as guessing it is a bug in +`_istranslation` --[[Joey]] + Documentation ------------- -- cgit v1.2.3 From a7e5541c4d3f717811551d574af528236fa5f214 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 19 Jul 2009 23:55:58 +0200 Subject: %links dedup bug? --- doc/plugins/po.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/plugins/po.mdwn') diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn index 156cb6cb3..a0d3e7a93 100644 --- a/doc/plugins/po.mdwn +++ b/doc/plugins/po.mdwn @@ -277,6 +277,15 @@ index.de/index.html contains the raw po file shoved into page.tmpl. I have only gotten as far as guessing it is a bug in `_istranslation` --[[Joey]] +Duplicate %links ? +------------------ + +I notice code in the scan hook that seems to assume +that %links will accumulate duplicate links for a page. +That used to be so, but the bug was fixed. Does this mean +that po might be replacing the only link on a page, in error? +--[[Joey]] + Documentation ------------- -- cgit v1.2.3 From 7865433d8ea1c37a84b191556886d1803a405a16 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 20 Jul 2009 00:11:56 +0200 Subject: update, think I have the real bug this time --- doc/plugins/po.mdwn | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'doc/plugins/po.mdwn') diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn index a0d3e7a93..e1cb0b5b9 100644 --- a/doc/plugins/po.mdwn +++ b/doc/plugins/po.mdwn @@ -260,22 +260,18 @@ order, as `po_slave_languages` is a hash. It would need to be converted to an array to support this. (If twere done, twere best done quickly.) --[[Joey]] -Re-render bug -------------- +po files in underlay +-------------------- -If .ikiwiki is deleted and a wiki is rebuilt from scratch, and -po has created po files before, something wrong happens: +I think this plugin doesn't yet allow po files to be present in an +underlay to translate files also from the underlay. -> joey@gnu:~/src/ikiwiki/po/html>ls -l index* -> -rw-r--r-- 1 joey joey 1159 Jul 19 22:51 index.html -> -> index.de: -> total 4 -> -rw-r--r-- 1 joey joey 1829 Jul 19 22:51 index.html +In `istranslatablefile`, it specifically checks that +the file is present in srcdir. -index.de/index.html contains the raw po file shoved into -page.tmpl. I have only gotten as far as guessing it is a bug in -`_istranslation` --[[Joey]] +Problem with this is that it precludes using po to translate +the basewiki (work which is well under way for Danish BTW), +since the translated po files cannot really be used. --[[Joey]] Duplicate %links ? ------------------ -- cgit v1.2.3