Commit 426ee422 authored by Michal Čihař's avatar Michal Čihař

Fix variable name to avoid overwrite of globall class

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2d62fad9
......@@ -858,16 +858,16 @@ class PoFormat(FileFormat):
for unit in self.store.units:
if not unit.istranslated() and not unit.isheader():
continue
mounit = mounit()
outunit = mounit()
if unit.isheader():
mounit.source = ""
outunit.source = ""
else:
mounit.source = unit.source
outunit.source = unit.source
context = unit.getcontext()
if context:
mounit.msgctxt = [context]
mounit.target = unit.target
outputfile.addunit(mounit)
outunit.msgctxt = [context]
outunit.target = unit.target
outputfile.addunit(outunit)
return self.serialize(outputfile)
def get_language_pack_meta(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment