po plugin: only refresh private module variables when needed
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
7b7865150f
commit
892809bb53
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue