From 1e69eb482fdb30971c15a52b93ce6803175aca37 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 15 Oct 2008 05:27:28 +0200 Subject: [PATCH] po plugin: rebuild %translations after having created missing POT/PO files This is not needed yet, but when newly created POT/PO files are added to %pagesources and other data structures, we'll need this. Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 43b36430f..62a2aa3db 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -169,6 +169,14 @@ sub needsbuild () { #{{{ } } + # refresh %translations, using istranslation's side-effect + # (not needed yet, but when newly created POT/PO files are + # added to %pagesources and other data structures, we'll need + # this) + foreach my $page (keys %pagesources) { + istranslation($page); + } + # make existing translations depend on the corresponding master page foreach my $master (keys %translations) { foreach my $slave (values %{$translations{$master}}) { -- 2.44.0