Monday, January 2, 2017
1 change
Code cleanup and technical improvements
The XML translation logic was rewritten to better handle content that uses XML namespaces, reducing the risk of translation issues in complex views or data files. The change also simplifies the underlying code and adds tests for namespaces, unicode characters, and invalid translations, improving reliability without changing normal user workflows.
Original PR description
The class `XMLTranslator` is replaced by a function `translate_xml_node` that takes an XML node and returns the translated XML node. The function is recursive and much simpler to understand than the former implementation.