Commit d66c3a98 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents d2e6ec62 6a98e841
......@@ -113,6 +113,8 @@ class BaseExporter(object):
self.handle_plurals(unit.get_target_plurals())
)
output.setcontext(self.string_filter(unit.context))
if hasattr(output, 'msgctxt'):
output.msgctxt = [self.string_filter(unit.context)]
for location in unit.location.split():
if location:
output.addlocation(location)
......
......@@ -125,5 +125,4 @@ class TBXExporterTest(PoExporterTest):
class MoExporterTest(PoExporterTest):
_class = MoExporter
# Not supported in current translate-toolkit, but PR submitted
_has_context = None
_has_context = True
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