Quoting Esko Arajärvi ([email protected]): > #. Type: error > #. Description > #: ../lilo.templates:18001 > msgid "" > "You should either repair the situation or hand-roll your own ${liloconf} " > "configuration file; you can then run /usr/sbin/liloconfig again to retry the > " > "configuration process. Documentation for LILO can be found in > /usr/share/doc/" > "lilo/." > msgstr "" > "Voit joko korjata tilanteen tai luoda käsin oman asetustiedoston " > "${liloconfig}. Tämän jälkeen voit ajaa uudelleen ohjelman /usr/bin/" ^^^^^^^^^^
That variable doesn't match the variable in msgid. I fixed that in the attached file. PS: I don't do these checks by hand or by proofreading each and every translation....:-)....actually the attached script (whose author is unknown...IIRC it was Martin Quinson) does exactly that and is part of my script that checks PO files for common errors.
fi.po
Description: application/gettext
#! /usr/bin/perl
sub getVars
{
my $text = shift;
my $var = '';
while ($text =~ m/\G.*?(\$\{[^{}]+\})/g) {
$var .= $1;
}
return $var;
}
$/ = "\n\n";
open (PO, "< $ARGV[0]") or die "Unable to open $ARGV[0]: $!\n";
while (<PO>)
{
s/"\n"//g;
(my $msgid) = m/^msgid "(.*)"$/m;
(my $msgstr) = m/^msgstr "(.*)"$/m;
next if $msgstr eq '' || m/^#, .*fuzzy/m;
my $var1 = getVars($msgid);
my $var2 = getVars($msgstr);
print if $var1 ne $var2;
}
close (PO);
signature.asc
Description: Digital signature

