7 foreach my $f (@ARGV) {
8 my ($lang, $translated, $fuzzy, $untranslated) = (undef, 0, 0, 0);
10 # statistics are printed on stderr, as well as error messages.
11 my $stat = `msgfmt --statistics "$f" 2>&1`;
12 ($lang = $f) =~ s
,\
.po
$,,;
13 if ($stat =~ qr
"(\d+)\s+translated") {
16 if ($stat =~ qr
"(\d+)\s+fuzzy") {
19 if ($stat =~ qr
"(\d+)\s+untranslated") {
23 printf("%8s %10s %5s %12s\n",
24 "language", "translated", "fuzzy", "untranslated");
25 printf("%s\n", "-" x
43);
28 printf("%8s %10d %5d %12d\n",
29 $lang, $translated, $fuzzy, $untranslated);