Heavy change to the translating feature, for now in half-working state (XML parsing still works).