mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
issues/965
This commit is contained in:
parent
f91565c72e
commit
e9e8005a94
@ -1,7 +1,8 @@
|
|||||||
from myutils.config import globalconfig, savehook_new_data
|
from myutils.config import globalconfig, savehook_new_data, uid2gamepath
|
||||||
from myutils.utils import postusewhich
|
from myutils.utils import postusewhich
|
||||||
from gui.inputdialog import postconfigdialog_
|
from gui.inputdialog import postconfigdialog_
|
||||||
import gobject
|
import gobject
|
||||||
|
from myutils.hwnd import getExeIcon
|
||||||
|
|
||||||
|
|
||||||
class Process:
|
class Process:
|
||||||
@ -23,7 +24,7 @@ class Process:
|
|||||||
"专有名词翻译_sakura_gpt_词典",
|
"专有名词翻译_sakura_gpt_词典",
|
||||||
["原文", "翻译", "注释"],
|
["原文", "翻译", "注释"],
|
||||||
dictkeys=["src", "dst", "info"],
|
dictkeys=["src", "dst", "info"],
|
||||||
)
|
).setWindowIcon(getExeIcon(uid2gamepath[gameuid], cache=True))
|
||||||
|
|
||||||
def process_before(self, japanese):
|
def process_before(self, japanese):
|
||||||
|
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
from myutils.config import noundictconfig, savehook_new_data
|
from myutils.config import noundictconfig, savehook_new_data
|
||||||
import gobject, re, functools, winsharedutils, json
|
import gobject, re, functools
|
||||||
from qtsymbols import *
|
from qtsymbols import *
|
||||||
from traceback import print_exc
|
from traceback import print_exc
|
||||||
import gobject
|
|
||||||
from gui.usefulwidget import threebuttons, TableViewW
|
from gui.usefulwidget import threebuttons, TableViewW
|
||||||
from myutils.wrapper import Singleton_close
|
from myutils.wrapper import Singleton_close
|
||||||
from myutils.utils import postusewhich
|
from myutils.utils import postusewhich
|
||||||
from gui.dynalang import LDialog, LLabel, LPushButton, LStandardItemModel, LAction
|
from gui.dynalang import LDialog, LLabel, LPushButton, LStandardItemModel, LAction
|
||||||
|
from myutils.config import uid2gamepath
|
||||||
|
from myutils.hwnd import getExeIcon
|
||||||
|
|
||||||
|
|
||||||
@Singleton_close
|
@Singleton_close
|
||||||
@ -336,13 +337,11 @@ class Process:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_setting_window_gameprivate(parent_window, gameuid):
|
def get_setting_window_gameprivate(parent_window, gameuid):
|
||||||
return (
|
return noundictconfigdialog_private(
|
||||||
noundictconfigdialog_private(
|
|
||||||
parent_window,
|
parent_window,
|
||||||
savehook_new_data[gameuid]["noundictconfig"],
|
savehook_new_data[gameuid]["noundictconfig"],
|
||||||
"专有名词翻译_占位符",
|
"专有名词翻译_占位符",
|
||||||
),
|
).setWindowIcon(getExeIcon(uid2gamepath[gameuid], cache=True))
|
||||||
)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_setting_window(parent_window):
|
def get_setting_window(parent_window):
|
||||||
|
@ -2,6 +2,8 @@ from myutils.config import transerrorfixdictconfig, savehook_new_data
|
|||||||
from myutils.utils import parsemayberegexreplace, postusewhich
|
from myutils.utils import parsemayberegexreplace, postusewhich
|
||||||
from gui.inputdialog import noundictconfigdialog1
|
from gui.inputdialog import noundictconfigdialog1
|
||||||
import gobject
|
import gobject
|
||||||
|
from myutils.config import uid2gamepath
|
||||||
|
from myutils.hwnd import getExeIcon
|
||||||
|
|
||||||
|
|
||||||
class Process:
|
class Process:
|
||||||
@ -22,7 +24,7 @@ class Process:
|
|||||||
savehook_new_data[gameuid]["transerrorfix"],
|
savehook_new_data[gameuid]["transerrorfix"],
|
||||||
"翻译结果修正_设置",
|
"翻译结果修正_设置",
|
||||||
["正则", "翻译", "替换"],
|
["正则", "翻译", "替换"],
|
||||||
)
|
).setWindowIcon(getExeIcon(uid2gamepath[gameuid], cache=True))
|
||||||
|
|
||||||
def process_after(self, res, mp1):
|
def process_after(self, res, mp1):
|
||||||
res = parsemayberegexreplace(self.usewhich(), res)
|
res = parsemayberegexreplace(self.usewhich(), res)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from myutils.config import savehook_new_data, globalconfig
|
from myutils.config import globalconfig, savehook_new_data, uid2gamepath
|
||||||
import gobject, json, functools
|
|
||||||
from traceback import print_exc
|
|
||||||
from gui.inputdialog import postconfigdialog_
|
|
||||||
from myutils.utils import postusewhich
|
from myutils.utils import postusewhich
|
||||||
|
from gui.inputdialog import postconfigdialog_
|
||||||
|
import gobject, json, functools
|
||||||
|
from myutils.hwnd import getExeIcon
|
||||||
|
|
||||||
|
|
||||||
class Process:
|
class Process:
|
||||||
@ -33,7 +33,7 @@ class Process:
|
|||||||
"专有名词翻译_直接替换_设置",
|
"专有名词翻译_直接替换_设置",
|
||||||
["原文", "翻译"],
|
["原文", "翻译"],
|
||||||
closecallback=functools.partial(checkchange, gameuid, __),
|
closecallback=functools.partial(checkchange, gameuid, __),
|
||||||
)
|
).setWindowIcon(getExeIcon(uid2gamepath[gameuid], cache=True))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def using_X(self):
|
def using_X(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user