Use the right match...

This commit is contained in:
Michael Gorven 2009-11-21 14:53:36 +02:00
parent 4ee481ca6e
commit cf4291b73b

View File

@ -56,9 +56,9 @@ def parse_file(filename):
class_name = line[6:line.find(u'(')]
continue
for match in find_trUtf8.finditer(line):
key = u'%s-%s' % (class_name, match.group(1))
key = u'%s-%s' % (class_name, match.group(2))
if not key in strings:
strings[key] = [class_name, filename, line_number, match.group(1)]
strings[key] = [class_name, filename, line_number, match.group(2)]
file.close()
def write_file(filename):