[Update] config.py: Message Format. 設定された文字列に"[message]"と"[translation]"の両方が入っていなければ初期値を設定するように。
This commit is contained in:
@@ -447,6 +447,8 @@ class Config:
|
|||||||
@MESSAGE_FORMAT.setter
|
@MESSAGE_FORMAT.setter
|
||||||
def MESSAGE_FORMAT(self, value):
|
def MESSAGE_FORMAT(self, value):
|
||||||
if type(value) is str:
|
if type(value) is str:
|
||||||
|
if "[message]" not in value or "[translation]" not in value:
|
||||||
|
value = "[message]([translation])"
|
||||||
self._MESSAGE_FORMAT = value
|
self._MESSAGE_FORMAT = value
|
||||||
saveJson(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, value)
|
saveJson(self.PATH_CONFIG, inspect.currentframe().f_code.co_name, value)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user