diff options
author | nobuyuki morita <victory-guest> | 2013-02-14 16:12:19 +0000 |
---|---|---|
committer | nobuyuki morita <victory-guest> | 2013-02-14 16:12:19 +0000 |
commit | 23c97c8ab75dccd2ddd39a626f7fb510dfdc77f8 (patch) | |
tree | d85d0881a6a09b9dba0c58a2f05dff5dc26062e4 /stattrans.pl | |
parent | e3ae555175ed15132a29734b3aaf32b49200589e (diff) |
this should fix po/TODO:
# TODO: there a bug here: if the translation .po files doesn't exist (i.e.
# nothing translated), the stats are incorrect.
CVS version numbers
stattrans.pl: 1.111 -> 1.112
Diffstat (limited to 'stattrans.pl')
-rwxr-xr-x | stattrans.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stattrans.pl b/stattrans.pl index cff3bea1649..99cd15f2802 100755 --- a/stattrans.pl +++ b/stattrans.pl @@ -283,9 +283,10 @@ foreach $lang (@search_in) { print "$0: can't find $opt_w/$lang/po! Skipping ...\n"; next; } - my @status = qx,LC_ALL=C make -C $opt_w/$lang/po stats 2>&1 1>/dev/null,; + my @status = qx,LC_ALL=C make -C $opt_w/$lang/po stats 2>&1,; foreach $line (@status) { chomp $line; + next if($line =~ /make: (Enter|Leav)ing directory/); ($domain = $line) =~ s/\..*//; $po_translated{$domain}{$lang} = ($line =~ /(\d+) translated/ ? $1 : "0"); $po_fuzzy{$domain}{$lang} = ($line =~ /(\d+) fuzzy/ ? $1 : "0"); |