From 23c97c8ab75dccd2ddd39a626f7fb510dfdc77f8 Mon Sep 17 00:00:00 2001 From: nobuyuki morita Date: Thu, 14 Feb 2013 16:12:19 +0000 Subject: 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 --- stattrans.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stattrans.pl') 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"); -- cgit v1.2.3