language on explanation support + explanation as new model + homonymy refactored as a double list

This commit is contained in:
matic_t
2020-08-06 03:47:52 -07:00
parent a07b35c6a8
commit 1770932a14
8 changed files with 84 additions and 43 deletions

View File

@@ -153,16 +153,11 @@ def export_translation(doc, translation):
explanationList = doc.createElement("explanationList")
for explanation in translation.explanationList:
el = doc.createElement("explanation")
el.textContent = explanation
explanationList.appendChild(el)
explanationList.appendChild(explanation.export(doc))
translation_xml.appendChild(explanationList)
explanation = doc.createElement("explanation")
explanation.textContent = translation.explanation
translation_xml.appendChild(explanation)
return translation_xml