Instead of checking the size of text only node, let the xml_translate verify it. The size verification using etree was introduced at40efdccc3dbut was probably too simple. Since45352512a8, this becomes redundant with the nonspace method which can be extended. The re.sub is still relevant as some terms may contain only non-alphanumeric and use push_translation (e.g. '>=' as a selection or xml terms extracted by babel in static repository) closes odoo/odoo#29432