mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
f84cc24872
commit
773dc86443
@ -562,7 +562,10 @@ def checkpostlangmatch(name):
|
||||
for item in static_data["transoptimi"]:
|
||||
if name == item["name"]:
|
||||
try:
|
||||
return getlanguse() == item["languageuse"]
|
||||
if isinstance(item["languageuse"], list):
|
||||
return getlanguse() in item["languageuse"]
|
||||
elif isinstance(item["languageuse"], str):
|
||||
return getlanguse() == item["languageuse"]
|
||||
except:
|
||||
return True
|
||||
|
||||
|
@ -367,7 +367,7 @@ class Process:
|
||||
noundictconfigdialog_private(
|
||||
parent_window,
|
||||
savehook_new_data[gameuid]["noundictconfig"],
|
||||
"专有名词翻译_直接替换_占位符",
|
||||
"专有名词翻译_占位符",
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -1856,7 +1856,10 @@
|
||||
{
|
||||
"name": "gptpromptdict",
|
||||
"visname": "专有名词翻译_sakura_gpt_词典",
|
||||
"languageuse": "zh"
|
||||
"languageuse": [
|
||||
"zh",
|
||||
"cht"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "transerrorfix",
|
||||
|
Loading…
x
Reference in New Issue
Block a user