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

No locations for JSON

It just copies context and confuses users.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e6a4b981
......@@ -98,11 +98,12 @@ class FileUnit(object):
'''
Returns comma separated list of locations.
'''
# XLIFF and PHP are special in ttkit - it uses locations for what
# JSON, XLIFF and PHP are special in ttkit - it uses locations for what
# is context in other formats
if (isinstance(self.mainunit, xliffunit) or
isinstance(self.mainunit, javafile) or
isinstance(self.mainunit, javautf8file) or
isinstance(self.mainunit, JsonUnit) or
isinstance(self.mainunit, phpunit)):
return ''
result = ', '.join(self.mainunit.getlocations())
......
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