summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-10-13 10:11:30 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-10-13 10:12:46 +0200
commit4456143b68c5093ca558579e9bc90cd3dd49cab1 (patch)
tree76192609668b5e346ebf5555ab9517dd6fdcb35d /l10ntools
parent257ad3bfd33ee709c397b60c302a393ccf114b7b (diff)
po2lo: the po parser should be reset before starting a new file
Diffstat (limited to 'l10ntools')
-rwxr-xr-xl10ntools/scripts/po2lo2
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/scripts/po2lo b/l10ntools/scripts/po2lo
index a815739fb893..9fc93d632263 100755
--- a/l10ntools/scripts/po2lo
+++ b/l10ntools/scripts/po2lo
@@ -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