[FIX] translate: skip XML comments when extracting terms from views

bzr revid: odo@openerp.com-20121124025622-mb7t7q7wgb7gu8y6
This commit is contained in:
Olivier Dony 2012-11-24 03:56:22 +01:00
parent ac589faf43
commit 0293ce4f64
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ def trans_parse_rml(de):
def trans_parse_view(de):
res = []
if de.text and de.text.strip():
if not isinstance(de, SKIPPED_ELEMENT_TYPES) and de.text and de.text.strip():
res.append(de.text.strip().encode("utf8"))
if de.tail and de.tail.strip():
res.append(de.tail.strip().encode("utf8"))