diff options
author | intrigeri <intrigeri@boum.org> | 2008-11-10 15:09:56 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-11-10 15:09:56 +0100 |
commit | 38cdda66d7d318918aab13b5e3b8dbfebc9ffd1c (patch) | |
tree | 9937d2e0c5c80cd97d11076b35703052f0f89251 | |
parent | 5575786803b163bf10f8f6d22f958568fad40d49 (diff) |
po: actually use pofiles() function, to enhance code clarity
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r-- | IkiWiki/Plugin/po.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index e7f36e968..8ea852d04 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -584,12 +584,9 @@ sub change(@) { #{{{ $updated_pot_file=1; } my @pofiles; - foreach my $lang (keys %{$config{po_slave_languages}}) { - my $pofile=pofile($file, $lang); - if ($updated_pot_file || ! -e $pofile) { - push @pofiles, $pofile; - } - } + map { + push @pofiles, $_ if ($updated_pot_file || ! -e $_); + } (pofiles($file)); if (@pofiles) { refreshpofiles($file, @pofiles); map { IkiWiki::rcs_add($_); } @pofiles if ($config{rcs}); |