diff options
-rw-r--r-- | IkiWiki/Plugin/po.pm | 8 |
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}}) { |