mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44: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"]:
|
for item in static_data["transoptimi"]:
|
||||||
if name == item["name"]:
|
if name == item["name"]:
|
||||||
try:
|
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:
|
except:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ class Process:
|
|||||||
noundictconfigdialog_private(
|
noundictconfigdialog_private(
|
||||||
parent_window,
|
parent_window,
|
||||||
savehook_new_data[gameuid]["noundictconfig"],
|
savehook_new_data[gameuid]["noundictconfig"],
|
||||||
"专有名词翻译_直接替换_占位符",
|
"专有名词翻译_占位符",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1856,7 +1856,10 @@
|
|||||||
{
|
{
|
||||||
"name": "gptpromptdict",
|
"name": "gptpromptdict",
|
||||||
"visname": "专有名词翻译_sakura_gpt_词典",
|
"visname": "专有名词翻译_sakura_gpt_词典",
|
||||||
"languageuse": "zh"
|
"languageuse": [
|
||||||
|
"zh",
|
||||||
|
"cht"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "transerrorfix",
|
"name": "transerrorfix",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user