[FIX] translate: skip XML comments when extracting terms from views
bzr revid: odo@openerp.com-20121124025622-mb7t7q7wgb7gu8y6
This commit is contained in:
parent
ac589faf43
commit
0293ce4f64
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue