diff --git a/LunaTranslator/LunaTranslator/LunaTranslator.py b/LunaTranslator/LunaTranslator/LunaTranslator.py index 566dc5ab..d5380f15 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator.py @@ -587,7 +587,7 @@ class MAINUI: if globalconfig["startgamenototop"] == False: idx = savehook_new_list.index(gameuid) savehook_new_list.insert(0, savehook_new_list.pop(idx)) - self.textsource = texthook(pids, hwnd, pexe, gameuid) + self.textsource = texthook(pids, hwnd, pexe, gameuid, autostart=False) self.textsource.start() def starttextsource(self, use=None, checked=True): @@ -820,15 +820,7 @@ class MAINUI: if globalconfig["startgamenototop"] == False: idx = savehook_new_list.index(uid) savehook_new_list.insert(0, savehook_new_list.pop(idx)) - needinserthookcode = savehook_new_data[uid]["needinserthookcode"] - self.textsource = texthook( - pids, - hwnd, - name_, - uid, - autostarthookcode=savehook_new_data[uid]["hook"], - needinserthookcode=needinserthookcode, - ) + self.textsource = texthook(pids, hwnd, name_, uid, autostart=True) self.textsource.start() else: diff --git a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py index 5a9a0753..13af5142 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py @@ -1378,6 +1378,11 @@ class dialog_setting_game_internal(QWidget): def gethooktab(self, formLayout: LFormLayout, gameuid): + formLayout.addRow( + "延迟注入(ms)", + getspinbox(0, 1000000, savehook_new_data[gameuid], "inserthooktimeout"), + ) + formLayout.addRow( "特殊码", listediterline( @@ -1387,11 +1392,6 @@ class dialog_setting_game_internal(QWidget): ), ) - formLayout.addRow( - "插入特殊码延迟(ms)", - getspinbox(0, 1000000, savehook_new_data[gameuid], "inserthooktimeout"), - ) - for k in [ "codepage_index", "removeuseless", diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index 221cc77d..e52d6d3b 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -130,7 +130,7 @@ def getdefaultsavehook(title=None): "startcmd": '"{exepath}"', "startcmduse": False, "hook": [], - "inserthooktimeout": 0, + "inserthooktimeout": 1000, "needinserthookcode": [], # "allow_tts_auto_names": "",#->v4 # "allow_tts_auto_names_v4": [], diff --git a/LunaTranslator/LunaTranslator/textsource/texthook.py b/LunaTranslator/LunaTranslator/textsource/texthook.py index 02c030ab..53e5d2c8 100644 --- a/LunaTranslator/LunaTranslator/textsource/texthook.py +++ b/LunaTranslator/LunaTranslator/textsource/texthook.py @@ -101,19 +101,16 @@ class texthook(basetext): return __shitdict(savehook_new_data[self.gameuid]["hooksetting_private"]) - def __init__( - self, - pids, - hwnd, - gamepath, - gameuid, - autostarthookcode=None, - needinserthookcode=None, - ): - if autostarthookcode is None: + def __init__(self, pids, hwnd, gamepath, gameuid, autostart=False): + if autostart: + autostarthookcode = savehook_new_data[gameuid]["hook"] + needinserthookcode = savehook_new_data[gameuid]["needinserthookcode"] + self.injecttimeout = savehook_new_data[gameuid]["inserthooktimeout"] / 1000 + else: + self.injecttimeout = 0 autostarthookcode = [] - if needinserthookcode is None: needinserthookcode = [] + self.keepref = [] self.newline = Queue() self.newline_delaywait = Queue() @@ -265,7 +262,12 @@ class texthook(basetext): ) injectdll(injectpids, injecter, dll) + @threader def start(self): + + time.sleep(self.injecttimeout) + if self.ending: + return try: self.start_unsafe() except: @@ -276,7 +278,6 @@ class texthook(basetext): def onprocconnect(self, pid): self.connectedpids.append(pid) - time.sleep(savehook_new_data[self.gameuid]["inserthooktimeout"] / 1000) for hookcode in self.needinserthookcode: self.Luna_InsertHookCode(pid, hookcode) self.showgamename() diff --git a/LunaTranslator/files/lang/ar.json b/LunaTranslator/files/lang/ar.json index fb99ec57..5bd7de68 100644 --- a/LunaTranslator/files/lang/ar.json +++ b/LunaTranslator/files/lang/ar.json @@ -484,7 +484,6 @@ "字体样式": "نمط الخط", "选择声音": "اختيار الصوت", "使用Unicode范围过滤": "استخدام يونيكود مجموعة فلتر", - "插入特殊码延迟(ms)": "إدراج رمز خاص تأخير ( ماجستير )", "朗读原文": "قراءة النص", "朗读翻译": "قراءة الترجمة", "朗读的翻译": "قراءة الترجمة", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "التحديث التلقائي فشل التحديث اليدوي", "准备完毕,等待更新": "جاهزة للتحديث", "自定义": "عرف", - "其他参数": "معايير أخرى" + "其他参数": "معايير أخرى", + "延迟注入(ms)": "تأخر حقن ( ماجستير )" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/cht.json b/LunaTranslator/files/lang/cht.json index 31bf4acb..cccb300e 100644 --- a/LunaTranslator/files/lang/cht.json +++ b/LunaTranslator/files/lang/cht.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "翻譯請求間隔(s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "若有多個 API Key,用 | 將每個 Key 連接後填入,即可輪流使用", "端口可用": "連接埠可用", - "插入特殊码延迟(ms)": "插入特殊碼延遲(ms)", "朗读原文": "朗讀原文", "朗读翻译": "朗讀翻譯", "朗读的翻译": "朗讀的翻譯", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "自動更新失敗,請手動更新", "准备完毕,等待更新": "準備完畢,等待更新", "自定义": "自訂", - "其他参数": "其他參數" + "其他参数": "其他參數", + "延迟注入(ms)": "延遲注入(ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/cs.json b/LunaTranslator/files/lang/cs.json index 1352466d..120ddbc4 100644 --- a/LunaTranslator/files/lang/cs.json +++ b/LunaTranslator/files/lang/cs.json @@ -293,7 +293,6 @@ "文本输入": "Zadání textu", "泰语(CP874)": "Thai (CP874)", "语音": "hlas", - "插入特殊码延迟(ms)": "Vložit zvláštní kód zpoždění (ms)", "连接失败": "připojení selhalo", "居中显示": "Středový displej", "翻译及OCR语言": "Překlady a OCR jazyk", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Automatická aktualizace selhala, aktualizace prosím ručně", "准备完毕,等待更新": "Připraveni, čekáme na novinky.", "自定义": "vlastní", - "其他参数": "Další parametry" + "其他参数": "Další parametry", + "延迟注入(ms)": "Zpožděná injekce (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/de.json b/LunaTranslator/files/lang/de.json index a08811c7..1f4c9140 100644 --- a/LunaTranslator/files/lang/de.json +++ b/LunaTranslator/files/lang/de.json @@ -293,7 +293,6 @@ "文本输入": "Texteingabe", "泰语(CP874)": "Thailändisch (CP874)", "语音": "Stimme", - "插入特殊码延迟(ms)": "Sondercodeverzögerung einfügen (ms)", "连接失败": "Verbindung fehlgeschlagen", "居中显示": "Zentralanzeige", "翻译及OCR语言": "Übersetzung und OCR Sprache", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Automatische Aktualisierung fehlgeschlagen, bitte manuell aktualisieren", "准备完毕,等待更新": "Bereit, warten auf Updates", "自定义": "kundenspezifisch", - "其他参数": "Weitere Parameter" + "其他参数": "Weitere Parameter", + "延迟注入(ms)": "Verspätete Injektion (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/en.json b/LunaTranslator/files/lang/en.json index 117d1ba3..8ebfc1a5 100644 --- a/LunaTranslator/files/lang/en.json +++ b/LunaTranslator/files/lang/en.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Translation Request Interval (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "If you have multiple API keys and want to use them in rotation, separate each key with | symbol", "端口可用": "Port Available", - "插入特殊码延迟(ms)": "Insert Hook Code Delay (ms)", "朗读原文": "Read Aloud Original Text", "朗读翻译": "Read Aloud Original and Translation", "朗读的翻译": "Translation of TTS Text", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Automatic update failed, please update manually", "准备完毕,等待更新": "Ready, waiting for updates", "自定义": "custom", - "其他参数": "Other parameters" + "其他参数": "Other parameters", + "延迟注入(ms)": "Delayed injection (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/es.json b/LunaTranslator/files/lang/es.json index 13e8d3a2..d175ec02 100644 --- a/LunaTranslator/files/lang/es.json +++ b/LunaTranslator/files/lang/es.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Intervalo de solicitud de traducción (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Si hay varias claves api, se puede usar por turnos después de conectar cada clave con | Y rellenarla.", "端口可用": "Puertos disponibles", - "插入特殊码延迟(ms)": "Retraso en la inserción de códigos especiales (ms)", "朗读原文": "Leer en voz alta el texto original", "朗读翻译": "Traducción en voz alta", "朗读的翻译": "Traducción de la lectura en voz alta", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Falló la actualización automática, actualice manualmente", "准备完毕,等待更新": "Listo, esperando la actualización", "自定义": "Personalizado", - "其他参数": "Otros parámetros" + "其他参数": "Otros parámetros", + "延迟注入(ms)": "Inyección de retraso (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/fr.json b/LunaTranslator/files/lang/fr.json index b12d7165..ba68e4a7 100644 --- a/LunaTranslator/files/lang/fr.json +++ b/LunaTranslator/files/lang/fr.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Intervalle de demande de traduction (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "S'il y a plusieurs clés d'API, remplissez chaque clé avec | et utilisez - la à tour de rôle", "端口可用": "Port disponible", - "插入特殊码延迟(ms)": "Insérer un retard de code spécial (MS)", "朗读原文": "Lire l'original à haute voix", "朗读翻译": "Lire la traduction à haute voix", "朗读的翻译": "Traduction lue à haute voix", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "La mise à jour automatique a échoué, veuillez la mettre à jour manuellement", "准备完毕,等待更新": "Prêt, en attente de mise à jour", "自定义": "Personnalisation", - "其他参数": "Autres paramètres" + "其他参数": "Autres paramètres", + "延迟注入(ms)": "Injection retardée (MS)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/it.json b/LunaTranslator/files/lang/it.json index aaf63553..b213b879 100644 --- a/LunaTranslator/files/lang/it.json +++ b/LunaTranslator/files/lang/it.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Intervallo (s) di richiesta di traduzione", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Se ci sono più chiavi API, usa | per collegare ogni chiave e compilarla a turno usando", "端口可用": "Porta disponibile", - "插入特殊码延迟(ms)": "Inserire ritardo speciale del codice (ms)", "朗读原文": "Lettura ad alta voce del testo originale", "朗读翻译": "Lettura e traduzione", "朗读的翻译": "Traduzione di lettura ad alta voce", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Aggiornamento automatico fallito, aggiornare manualmente", "准备完毕,等待更新": "Pronto, in attesa di aggiornamenti", "自定义": "personalizzato", - "其他参数": "Altri parametri" + "其他参数": "Altri parametri", + "延迟注入(ms)": "Iniezione ritardata (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ja.json b/LunaTranslator/files/lang/ja.json index 868370c0..395ba7f9 100644 --- a/LunaTranslator/files/lang/ja.json +++ b/LunaTranslator/files/lang/ja.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "翻訳要求間隔(s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "複数のapi keyがあれば、|で各keyを接続して記入すれば、交代で使用できます", "端口可用": "ポートが使用可能", - "插入特殊码延迟(ms)": "特殊コード挿入遅延(ms)", "朗读原文": "原文を朗読する", "朗读翻译": "朗読翻訳", "朗读的翻译": "朗読の翻訳", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "自動更新に失敗しました。手動で更新してください", "准备完毕,等待更新": "準備完了、更新待ち", "自定义": "カスタム#カスタム#", - "其他参数": "その他のパラメータ" + "其他参数": "その他のパラメータ", + "延迟注入(ms)": "遅延注入(ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ko.json b/LunaTranslator/files/lang/ko.json index ca9c8fa0..533b8607 100644 --- a/LunaTranslator/files/lang/ko.json +++ b/LunaTranslator/files/lang/ko.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "번역 요청 간격 (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "api key가 여러 개 있는 경우 를 사용하여 각 key를 연결한 후 입력하여 번갈아 가며 사용할 수 있습니다.", "端口可用": "포트 사용 가능", - "插入特殊码延迟(ms)": "특수 코드 삽입 지연 시간 (ms)", "朗读原文": "원문을 낭독하다", "朗读翻译": "낭독 번역", "朗读的翻译": "낭독의 번역", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "자동 업데이트 실패, 수동으로 업데이트", "准备完毕,等待更新": "준비 완료, 업데이트 대기 중", "自定义": "사용자 지정", - "其他参数": "기타 매개변수" + "其他参数": "기타 매개변수", + "延迟注入(ms)": "주입 지연 (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/nl.json b/LunaTranslator/files/lang/nl.json index 9867ea65..3f94e67c 100644 --- a/LunaTranslator/files/lang/nl.json +++ b/LunaTranslator/files/lang/nl.json @@ -293,7 +293,6 @@ "文本输入": "Tekstinvoer", "泰语(CP874)": "Thais (CP874)", "语音": "stem", - "插入特殊码延迟(ms)": "Speciale code vertraging invoegen (ms)", "连接失败": "verbinding mislukt", "居中显示": "Centrale weergave", "翻译及OCR语言": "Vertaling en OCR taal", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Automatische update mislukt, update handmatig", "准备完毕,等待更新": "Klaar, wachten op updates", "自定义": "op maat", - "其他参数": "Andere parameters" + "其他参数": "Andere parameters", + "延迟注入(ms)": "Vertraagde injectie (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/pl.json b/LunaTranslator/files/lang/pl.json index fe1ce269..e06a31e8 100644 --- a/LunaTranslator/files/lang/pl.json +++ b/LunaTranslator/files/lang/pl.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Interwał (s) żądania tłumaczenia", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Jeśli istnieje wiele kluczy API, użyj�aby połączyć każdy klucz i wypełnić go, aby na zmianę korzystać z niego", "端口可用": "Dostępny port", - "插入特殊码延迟(ms)": "Wprowadzić specjalny kod opóźnienia (ms)", "朗读原文": "Czytanie oryginalnego tekstu na głos", "朗读翻译": "Czytanie i tłumaczenie", "朗读的翻译": "Tłumaczenie czytania na głos", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Automatyczna aktualizacja nie powiodła się, proszę aktualizować ręcznie", "准备完毕,等待更新": "Gotowi, czekamy na aktualizacje.", "自定义": "niestandardowe", - "其他参数": "Inne parametry" + "其他参数": "Inne parametry", + "延迟注入(ms)": "Opóźnione wstrzyknięcie (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/pt.json b/LunaTranslator/files/lang/pt.json index 2de74f36..5f623054 100644 --- a/LunaTranslator/files/lang/pt.json +++ b/LunaTranslator/files/lang/pt.json @@ -293,7 +293,6 @@ "文本输入": "Entrada de texto", "泰语(CP874)": "Tailandês (CP874)", "语音": "voz", - "插入特殊码延迟(ms)": "Inserir um atraso especial do código (ms)", "连接失败": "a ligação falhou", "居中显示": "Ecrã central", "翻译及OCR语言": "Tradução e língua OCR", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "A actualização automática falhou, actualizar manualmente", "准备完毕,等待更新": "Pronto, à espera de actualizações.", "自定义": "personalizado", - "其他参数": "Outros parâmetros" + "其他参数": "Outros parâmetros", + "延迟注入(ms)": "Injeção retardada (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ru.json b/LunaTranslator/files/lang/ru.json index cf529e9d..d6212714 100644 --- a/LunaTranslator/files/lang/ru.json +++ b/LunaTranslator/files/lang/ru.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Интервал запросов на перевод (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Если есть несколько api - ключей, заполните каждый ключ после подключения и используйте его по очереди.", "端口可用": "Порт доступен", - "插入特殊码延迟(ms)": "Задержка вставки специального кода (ms)", "朗读原文": "Читать оригинал", "朗读翻译": "Читать перевод", "朗读的翻译": "Читать перевод", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Ошибка автоматического обновления, обновите вручную", "准备完毕,等待更新": "Готовы, ждем обновления", "自定义": "Настройка", - "其他参数": "Другие параметры" + "其他参数": "Другие параметры", + "延迟注入(ms)": "Задержка инъекции (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/sv.json b/LunaTranslator/files/lang/sv.json index bb5e1013..6a62b0b9 100644 --- a/LunaTranslator/files/lang/sv.json +++ b/LunaTranslator/files/lang/sv.json @@ -293,7 +293,6 @@ "文本输入": "Textinmatning", "泰语(CP874)": "Thailändska (CP874)", "语音": "röst", - "插入特殊码延迟(ms)": "Infoga särskild kodfördröjning (ms)", "连接失败": "Anslutning misslyckades", "居中显示": "Centrera visningen", "翻译及OCR语言": "Översättning och OCR-språk", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Automatisk uppdatering misslyckades, uppdatera manuellt", "准备完毕,等待更新": "Redo, väntar på uppdateringar", "自定义": "anpassad", - "其他参数": "Andra parametrar" + "其他参数": "Andra parametrar", + "延迟注入(ms)": "Fördröjd injektion (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/th.json b/LunaTranslator/files/lang/th.json index 3c833aef..46a7ff63 100644 --- a/LunaTranslator/files/lang/th.json +++ b/LunaTranslator/files/lang/th.json @@ -292,7 +292,6 @@ "文本输入": "ป้อนข้อความ", "泰语(CP874)": "ไทย (CP874)", "语音": "เสียงพูด", - "插入特殊码延迟(ms)": "แทรกรหัสพิเศษล่าช้า (ms)", "连接失败": "การเชื่อมต่อล้มเหลว", "文本搜索": "ค้นหาข้อความ", "居中显示": "แสดงกึ่งกลาง", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "การอัปเดตอัตโนมัติล้มเหลวโปรดอัปเดตด้วยตนเอง", "准备完毕,等待更新": "เตรียมพร้อมรอการปรับปรุง", "自定义": "การปรับแต่ง", - "其他参数": "พารามิเตอร์อื่น ๆ" + "其他参数": "พารามิเตอร์อื่น ๆ", + "延迟注入(ms)": "การฉีดล่าช้า (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/tr.json b/LunaTranslator/files/lang/tr.json index 128be705..008e6de9 100644 --- a/LunaTranslator/files/lang/tr.json +++ b/LunaTranslator/files/lang/tr.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Çeviri İstem Aralığı", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Eğer çoklu API anahtarları varsa, her anahtarı bağlamak için kullanın.", "端口可用": "Liman mevcut", - "插入特殊码延迟(ms)": "Özel kod gecikmesini (ms) ekle", "朗读原文": "Orijinal metin yüksek sesle okuyor", "朗读翻译": "Okuma ve Çeviri", "朗读的翻译": "Okumanın çevirimi yüksek olarak", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Otomatik güncelleştirme başarısız oldu, lütfen kendine güncelleştir", "准备完毕,等待更新": "Hazır, güncelleştirmeleri bekliyor.", "自定义": "Özel", - "其他参数": "Diğer parametreler" + "其他参数": "Diğer parametreler", + "延迟注入(ms)": "Uzak injeksiyon (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/uk.json b/LunaTranslator/files/lang/uk.json index ea8b79be..3ee16517 100644 --- a/LunaTranslator/files/lang/uk.json +++ b/LunaTranslator/files/lang/uk.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Інтервал запиту на переклад (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Якщо існує декілька ключів API, скористайтеся [UNK] для з’ єднання кожного ключа і заповнення його, щоб використовувати його", "端口可用": "Port available", - "插入特殊码延迟(ms)": "Вставити спеціальну затримку коду (мс)", "朗读原文": "Читання початкового тексту голосно", "朗读翻译": "Читання і переклад", "朗读的翻译": "Переклад читання голосно", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Автоматичне оновлення зазнало невдачі, будь ласка, оновіть вручну", "准备完毕,等待更新": "Готовий, чекаючи на оновлення", "自定义": "нетиповий", - "其他参数": "Інші параметри" + "其他参数": "Інші параметри", + "延迟注入(ms)": "Затримка інструкції (мс)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/vi.json b/LunaTranslator/files/lang/vi.json index d568cfd0..3c63349b 100644 --- a/LunaTranslator/files/lang/vi.json +++ b/LunaTranslator/files/lang/vi.json @@ -484,7 +484,6 @@ "翻译请求间隔(s)": "Khoảng thời gian yêu cầu dịch (s)", "若有多个api key,用|将每个key连接后填入,即可轮流使用": "Nếu có nhiều API key, bạn có thể sử dụng thay phiên nhau.", "端口可用": "Cổng có sẵn", - "插入特殊码延迟(ms)": "Chèn độ trễ mã đặc biệt (ms)", "朗读原文": "Đọc nguyên văn", "朗读翻译": "Đọc bản dịch", "朗读的翻译": "Bản dịch của read to", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "Cập nhật tự động không thành công, vui lòng cập nhật thủ công", "准备完毕,等待更新": "Sẵn sàng chờ update", "自定义": "Tùy chỉnh", - "其他参数": "Tham số khác" + "其他参数": "Tham số khác", + "延迟注入(ms)": "Tiêm chậm (ms)" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/zh.json b/LunaTranslator/files/lang/zh.json index d36c9eda..253d08c4 100644 --- a/LunaTranslator/files/lang/zh.json +++ b/LunaTranslator/files/lang/zh.json @@ -293,7 +293,6 @@ "文本输入": "", "泰语(CP874)": "", "语音": "", - "插入特殊码延迟(ms)": "", "连接失败": "", "居中显示": "", "翻译及OCR语言": "", @@ -838,5 +837,6 @@ "自动更新失败,请手动更新": "", "准备完毕,等待更新": "", "自定义": "", - "其他参数": "" + "其他参数": "", + "延迟注入(ms)": "" } \ No newline at end of file diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 8d3c79d0..14f43f7a 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 18) -set(VERSION_PATCH 1) +set(VERSION_PATCH 2) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)