(self)
return node_groups
:return: dict mapping 'lang' to ItextNodeGroup objects.
:return: dict mapping 'lang' to ItextNodeGroup objects.
: return : dict mapping lang to ItextNodeGroup objects .
def _itext_node_groups(self):
        """
        :return: dict mapping 'lang' to ItextNodeGroup objects.
        """
        node_groups = {}
        for lang, translation in self.translations().items():
            text_nodes = translation.findall('{f}text')
            for text in text_nodes:
                node = ItextNode(lang, text)
                group = node_groups.get(node.id)
                if not group:
                    group = ItextNodeGroup([node])
                else:
                    group.add_node(node)
                node_groups[node.id] = group

        return node_groups
def _itext_node_groups ( self ) : node_groups = { } for lang , translation in self . translations ( ) . items ( ) : text_nodes = translation . findall ( '{f}text' ) for text in text_nodes : node = ItextNode ( lang , text ) group = node_groups . get ( node . id ) if not group : group = ItextNodeGroup ( [ node ] ) else : group . add_node ( node ) node_groups [ node . id ] = group return node_groups