[IMP] translations: simplify condition in qweb terms extraction

This commit is contained in:
Xavier Morel 2014-10-10 14:23:56 +02:00 committed by Raphael Collet
parent 4beba1dc31
commit 9964aae7a3
1 changed files with 1 additions and 2 deletions

View File

@ -608,8 +608,7 @@ def _extract_translatable_qweb_terms(element, callback):
if (el.tag.lower() not in SKIPPED_ELEMENTS
and "t-js" not in el.attrib
and not ("t-jquery" in el.attrib and "t-operation" not in el.attrib)
and not ("t-translation" in el.attrib and
el.attrib["t-translation"].strip() == "off")):
and el.get("t-translation", '').strip() != "off"):
_push(callback, el.text, el.sourceline)
for att in ('title', 'alt', 'label', 'placeholder'):
if att in el.attrib: