po: actually use pofiles() function, to enhance code clarity

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-11-10 15:09:56 +01:00
parent 5575786803
commit 38cdda66d7
1 changed files with 3 additions and 6 deletions

View File

@ -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});