From a4f5837e0cbbd2f0d1b43ddf971917dba36fa2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Mon, 5 Jun 2023 09:48:08 +0200 Subject: [PATCH] translation key for traslated multi --- spip2md/extended_models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spip2md/extended_models.py b/spip2md/extended_models.py index c416728..3a9d58a 100644 --- a/spip2md/extended_models.py +++ b/spip2md/extended_models.py @@ -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