summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-15 00:05:52 +0200
committerintrigeri <intrigeri@boum.org>2008-10-18 15:49:11 +0200
commitd4f787ef528d9947473b4b99d1088b647d615200 (patch)
tree59656a84570f532eaf65a60f0f652b6b789e103b /IkiWiki
parenta8e8613fa11c1ac0b0f82e159df97d0837ae97e5 (diff)
po plugin: make any slave page dependent on the corresponding master page
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index ca26101b7..5abe9d419 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -150,6 +150,13 @@ sub needsbuild () { #{{{
refreshpofiles(srcfile($file), map { srcfile($_) } @pofiles);
}
}
+
+ # make existing translations depend on the corresponding master page
+ foreach my $master (keys %translations) {
+ foreach my $slave (values %{$translations{$master}}) {
+ add_depends($slave, $master);
+ }
+ }
} #}}}
sub targetpage (@) { #{{{