Commit b337c3f0 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 241d31b2 0fd5bf15
......@@ -240,7 +240,8 @@ class FileUnit(object):
return ''
else:
return context[0]
elif isinstance(self.mainunit, pounit) and self.template is not None:
elif (isinstance(self.mainunit, (pounit, JsonUnit))
and self.template is not None):
# Monolingual PO files
return self.template.source
else:
......
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