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

List Android resources if supported by ttkit (issue #100)

parent e7aa6459
......@@ -93,6 +93,18 @@ FILE_FORMATS = {
},
}
# Check if there is support for Android resources
# Available as patch at https://github.com/translate/translate/pull/2
try:
from translate.storage import aresource
FILE_FORMATS['aresource'] = {
'name': ugettext_lazy('Android String Resource'),
'loader': ('aresource', 'AndroidResourceFile'),
'monolingual': True,
}
except ImportError:
pass
FILE_FORMAT_CHOICES = [(fmt, FILE_FORMATS[fmt]['name']) for fmt in FILE_FORMATS]
def ttkit(storefile, file_format = 'auto'):
......
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