Another small fix

This commit is contained in:
Tomas Groth 2015-03-11 09:36:24 +01:00
parent 7ac79f0ede
commit 12056b2849

View File

@ -316,7 +316,7 @@ def check_format_strings():
for num in tag.iter('numerusform'): for num in tag.iter('numerusform'):
print_verbose('parsed numerusform: location: %s, source: %s, translation: %s' % ( print_verbose('parsed numerusform: location: %s, source: %s, translation: %s' % (
location, org_text, num.text)) location, org_text, num.text))
if org_text.count('%') != num.text.count('%'): if num and org_text.count('%') != num.text.count('%'):
print_quiet( print_quiet(
'ERROR: Translation from %s at line %s has a mismatch of format input:\n%s\n%s\n' % ( 'ERROR: Translation from %s at line %s has a mismatch of format input:\n%s\n%s\n' % (
location, line, org_text, num.text)) location, line, org_text, num.text))