translation key for traslated multi

This commit is contained in:
Guilhem Fauré 2023-06-05 09:48:08 +02:00
parent 5d25796323
commit a4f5837e0c

View File

@ -328,6 +328,7 @@ class RedactionalObject(WritableObject):
)
text = text.replace(block.group(), lang.group(1))
self.lang = forced_lang # So write-all will not be cancelled
self.id_trad = self._id # Assign translation key to id so hugo can link
if lang is None:
LOG.debug(f"{forced_lang} not found in `{self._title}`")
return text