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): ...@@ -858,16 +858,16 @@ class PoFormat(FileFormat):
for unit in self.store.units: for unit in self.store.units:
if not unit.istranslated() and not unit.isheader(): if not unit.istranslated() and not unit.isheader():
continue continue
mounit = mounit() outunit = mounit()
if unit.isheader(): if unit.isheader():
mounit.source = "" outunit.source = ""
else: else:
mounit.source = unit.source outunit.source = unit.source
context = unit.getcontext() context = unit.getcontext()
if context: if context:
mounit.msgctxt = [context] outunit.msgctxt = [context]
mounit.target = unit.target outunit.target = unit.target
outputfile.addunit(mounit) outputfile.addunit(outunit)
return self.serialize(outputfile) return self.serialize(outputfile)
def get_language_pack_meta(self): 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