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."""
|
"""Represents a set of .po files, containing translations."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
key = None
|
|
||||||
self.data = {}
|
self.data = {}
|
||||||
for root, dirs, files in os.walk(options.input):
|
for root, dirs, files in os.walk(options.input):
|
||||||
for file in files:
|
for file in files:
|
||||||
path = "%s/%s" % (root, file)
|
path = "%s/%s" % (root, file)
|
||||||
sock = xopen(path, "r", encoding='utf-8')
|
sock = xopen(path, "r", encoding='utf-8')
|
||||||
|
key = None
|
||||||
buf = []
|
buf = []
|
||||||
multiline = False
|
multiline = False
|
||||||
fuzzy = False
|
fuzzy = False
|
||||||
|
Reference in New Issue
Block a user