mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
4b1051a961
commit
0ac5b92f3f
@ -407,7 +407,7 @@ class basetrans(commonbase):
|
|||||||
|
|
||||||
self.maybeneedreinit()
|
self.maybeneedreinit()
|
||||||
|
|
||||||
if self.using_gpt_dict:
|
if self.using_gpt_dict or self.transtype == "pre":
|
||||||
contentsolved = self.__parse_gpt_dict(
|
contentsolved = self.__parse_gpt_dict(
|
||||||
contentsolved, optimization_params
|
contentsolved, optimization_params
|
||||||
)
|
)
|
||||||
|
@ -111,9 +111,8 @@ class TS(basetrans):
|
|||||||
collect.append(line)
|
collect.append(line)
|
||||||
return "\n".join(collect)
|
return "\n".join(collect)
|
||||||
|
|
||||||
def translate(self, content: str):
|
def translate(self, content: dict):
|
||||||
query = json.loads(content)
|
content = content["contentraw"]
|
||||||
content = query["contentraw"]
|
|
||||||
self.checkfilechanged(
|
self.checkfilechanged(
|
||||||
self.unsafegetcurrentgameconfig(), tuple(self.config["jsonfile"])
|
self.unsafegetcurrentgameconfig(), tuple(self.config["jsonfile"])
|
||||||
)
|
)
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 53)
|
set(VERSION_MINOR 53)
|
||||||
set(VERSION_PATCH 5)
|
set(VERSION_PATCH 6)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user