From 01d22d1ad462029939c2b4b5b8ed114d20e5b247 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Wed, 5 Apr 2023 12:35:23 +0200 Subject: [PATCH] Also check on Uranium.pot Contribute to CURA-10376 --- scripts/fix_translation_memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fix_translation_memory.py b/scripts/fix_translation_memory.py index a8eb4678d7..610fb93ac6 100644 --- a/scripts/fix_translation_memory.py +++ b/scripts/fix_translation_memory.py @@ -46,7 +46,7 @@ def main(tmx_source_path: Path, tmx_target_path: Path, i18n_path: Path): to_be_removed = [] for tu in root.iter("tu"): # TODO: also add logic for other pot files - if [t.text for t in tu.findall("prop") if t.attrib["type"] == "x-smartling-file"][0] not in ("cura.pot", "fdmprinter.def.json.pot", "fdmextruder.def.json.pot"): + if [t.text for t in tu.findall("prop") if t.attrib["type"] == "x-smartling-file"][0] not in ("cura.pot", "fdmprinter.def.json.pot", "fdmextruder.def.json.pot", "uranium.pot"): continue tuvs = tu.findall("tuv") key_source = tuvs[0].find("seg").text