From f5b3b503e4af03c536f2e36b38e0b054dcbac0fa Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Wed, 1 Nov 2023 09:19:40 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20config.py:=20Message=20Format.=20?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=81=95=E3=82=8C=E3=81=9F=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=88=97=E3=81=AB"[message]"=E3=81=A8"[translation]"=E3=81=AE?= =?UTF-8?q?=E4=B8=A1=E6=96=B9=E3=81=8C=E5=85=A5=E3=81=A3=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=91=E3=82=8C=E3=81=B0=E5=88=9D=E6=9C=9F=E5=80=A4?= =?UTF-8?q?=E3=82=92=E8=A8=AD=E5=AE=9A=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index 90896694..eeda8c1e 100644 --- a/config.py +++ b/config.py @@ -447,6 +447,8 @@ class Config: @MESSAGE_FORMAT.setter def MESSAGE_FORMAT(self, value): if type(value) is str: + if "[message]" not in value or "[translation]" not in value: + value = "[message]([translation])" self._MESSAGE_FORMAT = value saveJson(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, value)