summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-15 05:27:28 +0200
committerintrigeri <intrigeri@boum.org>2008-10-18 15:49:12 +0200
commit1e69eb482fdb30971c15a52b93ce6803175aca37 (patch)
treed8d51523456cb76b57a9a6ceaec81ab3db1be3ab /IkiWiki/Plugin
parent58c77a01f79efaa5692fd30231695c6f8775a7d9 (diff)
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 <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm8
1 files changed, 8 insertions, 0 deletions
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}}) {