Skip translation refering to unknown XML ID or unactivated source

Closes #12969
This commit is contained in:
Nicolas Évrard
2024-01-29 18:47:56 +01:00
parent 4ec0e5c1c1
commit ecaf40a8ee
+4 -2
View File
@@ -960,13 +960,15 @@ class Translation(
if (model in fs_id2prop
and res_id in fs_id2prop[model]):
res_id, noupdate = fs_id2prop[model][res_id]
elif res_id:
continue
if res_id:
try:
res_id = int(res_id)
except ValueError:
res_id = None
if not res_id:
continue
else:
res_id = -1
translation.res_id = res_id