diff options
author | intrigeri <intrigeri@boum.org> | 2008-10-15 07:23:06 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-10-18 15:49:13 +0200 |
commit | 892809bb53dd173cfdd353799c58df82851348d9 (patch) | |
tree | 4c1a3c736c6aaa0a6957b3c313589c0819b59835 | |
parent | 7b7865150f1670e92d6d81ece36902df7028ec97 (diff) |
po plugin: only refresh private module variables when needed
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r-- | IkiWiki/Plugin/po.pm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 9a25ff602..e4cd6165f 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -186,16 +186,14 @@ sub needsbuild () { #{{{ } IkiWiki::refresh(); IkiWiki::saveindex(); + # refresh module's private variables %filtered=undef; + %translations=undef; + foreach my $page (keys %pagesources) { + istranslation($page); + } } - # 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) { |