do not need to check untranslated and fuzzy strings because they have not been reviewed yet; warning this script uses tab for the bloc indentation...

svn: r20805
This commit is contained in:
Jérôme Rapinat 2012-12-20 17:42:29 +00:00
parent 1d9aeb81d0
commit 99a1729794

View File

@ -532,6 +532,7 @@ def analyze_msgs( args, fname, msgs, nr_templates = None, nth = 0 ):
if msg.is_fuzzy:
nr_fuzzy += 1
continue
for c in checks:
c.process( msg )
@ -548,7 +549,6 @@ def analyze_msgs( args, fname, msgs, nr_templates = None, nth = 0 ):
for c in checks:
c.summary()
c.diag()
po_coverage = (1.0 - (float(nr_untranslated) / float(nr_msgs))) * 100
print "%-20s%5.2f%%" % ( "PO Coverage:", po_coverage )
@ -565,6 +565,9 @@ def analyze_msgs( args, fname, msgs, nr_templates = None, nth = 0 ):
else:
print text + ' (previous gramps.pot)'
for c in checks:
c.diag()
def main():
parser = ArgumentParser( description='This program validates a PO file for GRAMPS.')