po2lo: the po parser should be reset before starting a new file
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user