Do not extract relatorio link's text as translation source

This commit is contained in:
Sergi Almacellas Abellana
2026-04-10 13:52:02 +02:00
parent 7bf94f6e79
commit b162fe645b
+5
View File
@@ -1114,6 +1114,11 @@ class TranslationSet(Wizard):
txt = node.nodeValue.strip()
if txt:
yield txt
if (node.nodeType == node.ELEMENT_NODE
and node.tagName == 'text:a'
and node.getAttribute('xlink:href').startswith(
'relatorio://')):
return
for child in [x for x in node.childNodes]:
for string in extract(child):