This commit is contained in:
恍兮惚兮 2024-07-31 18:23:47 +08:00
parent f84cc24872
commit 773dc86443
3 changed files with 9 additions and 3 deletions

View File

@ -562,6 +562,9 @@ def checkpostlangmatch(name):
for item in static_data["transoptimi"]:
if name == item["name"]:
try:
if isinstance(item["languageuse"], list):
return getlanguse() in item["languageuse"]
elif isinstance(item["languageuse"], str):
return getlanguse() == item["languageuse"]
except:
return True

View File

@ -367,7 +367,7 @@ class Process:
noundictconfigdialog_private(
parent_window,
savehook_new_data[gameuid]["noundictconfig"],
"专有名词翻译_直接替换_占位符",
"专有名词翻译_占位符",
),
)

View File

@ -1856,7 +1856,10 @@
{
"name": "gptpromptdict",
"visname": "专有名词翻译_sakura_gpt_词典",
"languageuse": "zh"
"languageuse": [
"zh",
"cht"
]
},
{
"name": "transerrorfix",