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

Fix detection of not translatable units in aresources

Fixes #334
parent 87a7477f
......@@ -49,10 +49,13 @@ class AndroidResourceUnit(base.TranslationUnit):
def istranslatable(self):
return (
bool(self.source)
bool(self.getid())
and self.xmlelement.get('translatable') != 'false'
)
def isblank(self):
return not bool(self.getid())
def getid(self):
return self.xmlelement.get("name")
......
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