Commit 050d88cd authored by Michal Čihař's avatar Michal Čihař

Store context only if it is set

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent eebc7525
......@@ -632,7 +632,9 @@ class PoFormat(FileFormat):
mounit.source = ""
else:
mounit.source = unit.source
mounit.msgctxt = [unit.getcontext()]
context = unit.getcontext()
if context:
mounit.msgctxt = [context]
mounit.target = unit.target
outputfile.addunit(mounit)
return str(outputfile)
......
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