po2lo: the po parser should be reset before starting a new file

This commit is contained in:
Miklos Vajna
2011-10-13 10:11:30 +02:00
parent 257ad3bfd3
commit 4456143b68

View File

@@ -103,12 +103,12 @@ class Translations:
"""Represents a set of .po files, containing translations."""
def __init__(self):
key = None
self.data = {}
for root, dirs, files in os.walk(options.input):
for file in files:
path = "%s/%s" % (root, file)
sock = xopen(path, "r", encoding='utf-8')
key = None
buf = []
multiline = False
fuzzy = False