comparison po/stats.pl @ 24169:f79b6c9b82a5

Pass --no-location to msgmerge when generating the stats at http://developer.pidgin.im/ so that the .po files don't contain line numbers are therefore show fewer spurious changes
author Mark Doliner <mark@kingant.net>
date Thu, 16 Oct 2008 07:58:41 +0000
parents 72f90ea7ae34
children f5e31099a351
comparison
equal deleted inserted replaced
24168:e93ca60b97dc 24169:f79b6c9b82a5
61 61
62 foreach $index (0 .. $#pos) { 62 foreach $index (0 .. $#pos) {
63 $trans = $fuzz = $untrans = 0; 63 $trans = $fuzz = $untrans = 0;
64 $po = $pos[$index]; 64 $po = $pos[$index];
65 print STDERR "$po..." if($ARGV[0] eq '-v'); 65 print STDERR "$po..." if($ARGV[0] eq '-v');
66 system("msgmerge -U $po.po $PACKAGE.pot 2>/dev/null"); 66 system("msgmerge --no-location -U $po.po $PACKAGE.pot 2>/dev/null");
67 if (($? & 127) == 2) { 67 if (($? & 127) == 2) {
68 printf STDERR "Caught keyboard interrupt--exiting\n"; 68 printf STDERR "Caught keyboard interrupt--exiting\n";
69 exit 69 exit
70 } 70 }
71 $_ = `msgfmt --statistics $po -o /dev/null 2>&1`; 71 $_ = `msgfmt --statistics $po -o /dev/null 2>&1`;