Commit 3e83903d authored by Michal Čihař's avatar Michal Čihař

Introduce inheritance of properties file formats

This is needed to share some methods, see #664.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 06d36db3
......@@ -786,11 +786,18 @@ class StringsUtf8Format(FileFormat):
@register_fileformat
class PropertiesFormat(FileFormat):
class PropertiesUtf8Format(FileFormat):
name = _('Java Properties (UTF-8)')
format_id = 'properties-utf8'
loader = ('properties', 'javautf8file')
monolingual = True
@register_fileformat
class PropertiesFormat(PropertiesUtf8Format):
name = _('Java Properties')
format_id = 'properties'
loader = ('properties', 'javafile')
monolingual = True
@classmethod
def fixup(cls, store):
......@@ -802,14 +809,6 @@ class PropertiesFormat(FileFormat):
return store
@register_fileformat
class PropertiesUtf8Format(FileFormat):
name = _('Java Properties (UTF-8)')
format_id = 'properties-utf8'
loader = ('properties', 'javautf8file')
monolingual = True
@register_fileformat
class PhpFormat(FileFormat):
name = _('PHP strings')
......
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