Commit fcbfbb43 authored by Michal Čihař's avatar Michal Čihař

Fix JSON format writing

Fixes #565
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 8ecee310
......@@ -845,6 +845,14 @@ class JSONFormat(FileFormat):
format_id = 'json'
loader = ('jsonl10n', 'JsonFile')
def _find_unit_template(self, context):
"""
We need to prepend . here to get proper ID.
"""
return super(JSONFormat, self)._find_unit_template(
'.' + context
)
FILE_FORMAT_CHOICES = [
(fmt, FILE_FORMATS[fmt].name) for fmt in sorted(FILE_FORMATS)
......
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