aboutsummaryrefslogtreecommitdiffstats
path: root/stattrans.pl
diff options
context:
space:
mode:
authornobuyuki morita <victory-guest>2013-02-14 16:12:19 +0000
committernobuyuki morita <victory-guest>2013-02-14 16:12:19 +0000
commit23c97c8ab75dccd2ddd39a626f7fb510dfdc77f8 (patch)
treed85d0881a6a09b9dba0c58a2f05dff5dc26062e4 /stattrans.pl
parente3ae555175ed15132a29734b3aaf32b49200589e (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-xstattrans.pl3
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");

© 2014-2024 Faster IT GmbH | imprint | privacy policy