From 92afae4ac5f6da24ab9c289515d4ea052c3426a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 15 Jun 2024 22:47:32 +0800 Subject: [PATCH] . --- .../LunaTranslator/LunaTranslator.py | 13 ---- LunaTranslator/LunaTranslator/cishu/youdao.py | 2 +- .../LunaTranslator/gui/dialog_savedgame.py | 60 +++++++++++++++---- .../LunaTranslator/gui/selecthook.py | 9 ++- .../LunaTranslator/gui/textbrowser.py | 4 +- .../LunaTranslator/myutils/commonbase.py | 3 +- .../LunaTranslator/myutils/config.py | 15 ++--- LunaTranslator/LunaTranslator/myutils/post.py | 5 +- .../LunaTranslator/myutils/utils.py | 42 ++++++++++++- .../LunaTranslator/ocrengines/local.py | 5 +- .../LunaTranslator/textsource/texthook.py | 23 ++++--- .../translator/basetranslator.py | 8 +-- LunaTranslator/LunaTranslator/tts/gtts.py | 2 +- LunaTranslator/files/lang/ar.json | 1 - LunaTranslator/files/lang/cht.json | 1 - LunaTranslator/files/lang/en.json | 1 - LunaTranslator/files/lang/es.json | 1 - LunaTranslator/files/lang/fr.json | 1 - LunaTranslator/files/lang/it.json | 1 - LunaTranslator/files/lang/ja.json | 1 - LunaTranslator/files/lang/ko.json | 1 - LunaTranslator/files/lang/pl.json | 1 - LunaTranslator/files/lang/ru.json | 1 - LunaTranslator/files/lang/th.json | 1 - LunaTranslator/files/lang/tr.json | 1 - LunaTranslator/files/lang/uk.json | 1 - LunaTranslator/files/lang/vi.json | 1 - LunaTranslator/files/lang/zh.json | 1 - plugins/CMakeLists.txt | 2 +- 29 files changed, 126 insertions(+), 82 deletions(-) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator.py b/LunaTranslator/LunaTranslator/LunaTranslator.py index dccf4a4a..509e875e 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator.py @@ -697,19 +697,6 @@ class MAINUI: needinserthookcode=needinserthookcode, ) - onloadautoswitchsrclang = savehook_new_data[name_][ - "onloadautoswitchsrclang" - ] - if onloadautoswitchsrclang > 0: - try: - self.settin_ui.srclangswitcher.setCurrentIndex( - onloadautoswitchsrclang - 1 - ) - except: - globalconfig["srclang3"] = ( - onloadautoswitchsrclang - 1 - ) - break else: pids = self.textsource.pids diff --git a/LunaTranslator/LunaTranslator/cishu/youdao.py b/LunaTranslator/LunaTranslator/cishu/youdao.py index c0954ac7..1696e181 100644 --- a/LunaTranslator/LunaTranslator/cishu/youdao.py +++ b/LunaTranslator/LunaTranslator/cishu/youdao.py @@ -1,4 +1,4 @@ -from myutils.config import getlangsrc +from myutils.utils import getlangsrc import requests from urllib.parse import quote import re, os diff --git a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py index 383bf9d6..9afd7f80 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py @@ -712,6 +712,7 @@ class dialog_setting_game_internal(QWidget): [ "启动", "HOOK", + "语言", "文本处理", "画廊", "标签", @@ -724,6 +725,7 @@ class dialog_setting_game_internal(QWidget): [ functools.partial(self.doaddtab, self.starttab, exepath), functools.partial(self.doaddtab, self.gethooktab, exepath), + functools.partial(self.doaddtab, self.getlangtab, exepath), functools.partial(self.doaddtab, self.gettextproc, exepath), functools.partial(self.doaddtab, self.fengmiantab, exepath), functools.partial(self.doaddtab, self.getlabelsetting, exepath), @@ -872,16 +874,6 @@ class dialog_setting_game_internal(QWidget): "onloadautochangemode2", ), ) - - formLayout.addRow( - _TR("自动切换源语言"), - getsimplecombobox( - _TRL(["不切换"]) + _TRL(static_data["language_list_translator"]), - savehook_new_data[exepath], - "onloadautoswitchsrclang", - ), - ) - return _w def getstatistic(self, exepath): @@ -1279,6 +1271,54 @@ class dialog_setting_game_internal(QWidget): ], ) + def getlangtab(self, exepath): + _w = QWidget() + formLayout = QFormLayout() + _vbox = QVBoxLayout() + _vbox.setAlignment(Qt.AlignmentFlag.AlignTop) + _w.setLayout(_vbox) + _vbox.addLayout(formLayout) + + __extraw = QWidget() + + formLayout.addRow( + _TR("跟随默认"), + getsimpleswitch( + savehook_new_data[exepath], + "lang_follow_default", + callback=lambda _: __extraw.setEnabled(not _), + ), + ) + __extraw.setEnabled(not savehook_new_data[exepath]["lang_follow_default"]) + savehook_new_data[exepath]["private_tgtlang"] = savehook_new_data[exepath].get( + "private_tgtlang", globalconfig["tgtlang3"] + ) + savehook_new_data[exepath]["private_srclang"] = savehook_new_data[exepath].get( + "private_srclang", globalconfig["srclang3"] + ) + + _vbox.addWidget(__extraw) + formLayout2 = QFormLayout() + formLayout2.setContentsMargins(0, 0, 0, 0) + __extraw.setLayout(formLayout2) + formLayout2.addRow( + _TR("源语言"), + getsimplecombobox( + _TRL(static_data["language_list_translator"]), + savehook_new_data[exepath], + "private_srclang", + ), + ) + formLayout2.addRow( + _TR("目标语言"), + getsimplecombobox( + _TRL(static_data["language_list_translator"]), + savehook_new_data[exepath], + "private_tgtlang", + ), + ) + return _w + def gethooktab(self, exepath): _w = QWidget() formLayout = QFormLayout() diff --git a/LunaTranslator/LunaTranslator/gui/selecthook.py b/LunaTranslator/LunaTranslator/gui/selecthook.py index 4e5ccce7..bdab7664 100644 --- a/LunaTranslator/LunaTranslator/gui/selecthook.py +++ b/LunaTranslator/LunaTranslator/gui/selecthook.py @@ -14,7 +14,7 @@ from gui.usefulwidget import ( getsimpleswitch, textbrowappendandmovetoend, FocusSpin, - FocusCombo + FocusCombo, ) @@ -860,19 +860,18 @@ class hookselect(closeashidewindow): def accept(self, key, select): try: - + hc, hn, tp = key if key in gobject.baseobject.textsource.selectedhook: gobject.baseobject.textsource.selectedhook.remove(key) if select: gobject.baseobject.textsource.selectedhook.append(key) - if key[-2][:8] == "UserHook": + if hn[:8] == "UserHook": needinserthookcode = savehook_new_data[ gobject.baseobject.textsource.pname ]["needinserthookcode"] - needinserthookcode = list(set(needinserthookcode + [key[-1]])) - + needinserthookcode = list(set(needinserthookcode + [hc])) savehook_new_data[gobject.baseobject.textsource.pname].update( {"needinserthookcode": needinserthookcode} ) diff --git a/LunaTranslator/LunaTranslator/gui/textbrowser.py b/LunaTranslator/LunaTranslator/gui/textbrowser.py index 67c32bcf..bd7852d7 100644 --- a/LunaTranslator/LunaTranslator/gui/textbrowser.py +++ b/LunaTranslator/LunaTranslator/gui/textbrowser.py @@ -509,8 +509,8 @@ class Textbrowser(QLabel): self.textcursor.setPosition(pos + l) self.textbrowser.setTextCursor(self.textcursor) __fm = self.getfh(False, getfm=True) - w1 = __fm.size(0, word["orig"][:__i]).width() - w2 = __fm.size(0, word["orig"][__i:]).width() + w1 = int(__fm.size(0, word["orig"][:__i]).width()) + w2 = int(__fm.size(0, word["orig"][__i:]).width()) pos1 = ( tl1.x() + 1, diff --git a/LunaTranslator/LunaTranslator/myutils/commonbase.py b/LunaTranslator/LunaTranslator/myutils/commonbase.py index 434803fa..96939a87 100644 --- a/LunaTranslator/LunaTranslator/myutils/commonbase.py +++ b/LunaTranslator/LunaTranslator/myutils/commonbase.py @@ -1,5 +1,6 @@ from myutils.proxy import getproxy -from myutils.config import getlangtgt, _TR, static_data, getlangsrc +from myutils.utils import getlangtgt, getlangsrc +from myutils.config import _TR, static_data from myutils.wrapper import stripwrapper import requests diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index f14816b8..93952fe5 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -66,11 +66,14 @@ def getdefaultsavehook(gamepath, title=None): "save_text_process_info": { "postprocessconfig": {}, "rank": [], - # "mypost": + # "mypost":# 设置时再加载 }, + "lang_follow_default": True, + #"private_srclang": 0,# 显示时再加载,缺省用global中的键 + #"private_tgtlang": 0, + "localeswitcher": 0, "onloadautochangemode2": 0, - "onloadautoswitchsrclang": 0, "needinserthookcode": [], "embedablehook": [], "statistic_playtime": 0, @@ -223,14 +226,6 @@ def getlanguse(): return static_data["language_list_translator_inner"][language] -def getlangsrc(): - return static_data["language_list_translator_inner"][globalconfig["srclang3"]] - - -def getlangtgt(): - return static_data["language_list_translator_inner"][globalconfig["tgtlang3"]] - - def setlanguage(): global language, languageshow language = globalconfig["languageuse"] diff --git a/LunaTranslator/LunaTranslator/myutils/post.py b/LunaTranslator/LunaTranslator/myutils/post.py index 762b9157..98ad0269 100644 --- a/LunaTranslator/LunaTranslator/myutils/post.py +++ b/LunaTranslator/LunaTranslator/myutils/post.py @@ -2,12 +2,11 @@ import re, codecs, inspect from traceback import print_exc from collections import Counter import importlib, gobject -from myutils.utils import getfilemd5, LRUCache +from myutils.utils import getfilemd5, LRUCache, getlangsrc from myutils.config import ( postprocessconfig, globalconfig, savehook_new_data, - getlangsrc, ) lrucache = LRUCache(0) @@ -374,7 +373,7 @@ def POSTSOLVE(line): usemypostpath = "./userconfig/mypost.py" usemodule = "mypost" try: - if "pname" in dir(gobject.baseobject.textsource): + if gobject.baseobject.textsource and ("pname" in dir(gobject.baseobject.textsource)): exepath = gobject.baseobject.textsource.pname if not savehook_new_data[exepath]["textproc_follow_default"]: useranklist = savehook_new_data[exepath]["save_text_process_info"][ diff --git a/LunaTranslator/LunaTranslator/myutils/utils.py b/LunaTranslator/LunaTranslator/myutils/utils.py index 3397cc2a..b15474e1 100644 --- a/LunaTranslator/LunaTranslator/myutils/utils.py +++ b/LunaTranslator/LunaTranslator/myutils/utils.py @@ -24,6 +24,35 @@ import re, heapq, winsharedutils from myutils.wrapper import tryprint +def __internal__getlang(k1, k2): + try: + for _ in (0,): + + if not gobject.baseobject.textsource: + break + if "pname" not in dir(gobject.baseobject.textsource): + break + exepath = gobject.baseobject.textsource.pname + if savehook_new_data[exepath]["lang_follow_default"]: + break + + return static_data["language_list_translator_inner"][ + savehook_new_data[exepath][k1] + ] + except: + pass + return static_data["language_list_translator_inner"][globalconfig[k2]] + + +def getlangsrc(): + return __internal__getlang("private_srclang", "srclang3") + + +def getlangtgt(): + + return __internal__getlang("private_tgtlang", "tgtlang3") + + def findenclose(text, tag): i = 0 tags = f"<{tag}" @@ -196,6 +225,7 @@ def trysearchfordata(gamepath, key, vid): savehook_new_data[gamepath]["developers"] = developers return True + def everymethodsthread(): while True: _ = searchvndbqueue.get() @@ -204,14 +234,20 @@ def everymethodsthread(): if _type == 0: infoid = trysearchforid(gamepath, arg) key, vid = infoid - gobject.baseobject.translation_ui.displayglobaltooltip.emit(f"{key}: found {vid}") + gobject.baseobject.translation_ui.displayglobaltooltip.emit( + f"{key}: found {vid}" + ) elif _type == 1: key, vid = arg if trysearchfordata(gamepath, key, vid): - gobject.baseobject.translation_ui.displayglobaltooltip.emit(f"{key}: {vid} data loaded") + gobject.baseobject.translation_ui.displayglobaltooltip.emit( + f"{key}: {vid} data loaded" + ) else: - gobject.baseobject.translation_ui.displayglobaltooltip.emit(f"{key}: {vid} load failed") + gobject.baseobject.translation_ui.displayglobaltooltip.emit( + f"{key}: {vid} load failed" + ) except: print_exc() diff --git a/LunaTranslator/LunaTranslator/ocrengines/local.py b/LunaTranslator/LunaTranslator/ocrengines/local.py index 13d41a70..d693840b 100644 --- a/LunaTranslator/LunaTranslator/ocrengines/local.py +++ b/LunaTranslator/LunaTranslator/ocrengines/local.py @@ -1,17 +1,16 @@ import os -from myutils.config import globalconfig, _TR, getlangsrc +from myutils.utils import getlangsrc +from myutils.config import globalconfig, _TR from ocrengines.baseocrclass import baseocr from ctypes import ( CDLL, c_char_p, - create_string_buffer, c_size_t, c_void_p, c_int32, POINTER, Structure, pointer, - cast, c_char_p, ) import os diff --git a/LunaTranslator/LunaTranslator/textsource/texthook.py b/LunaTranslator/LunaTranslator/textsource/texthook.py index 0c377563..9df83000 100644 --- a/LunaTranslator/LunaTranslator/textsource/texthook.py +++ b/LunaTranslator/LunaTranslator/textsource/texthook.py @@ -441,21 +441,26 @@ class texthook(basetext): @threader def delaycollectallselectedoutput(self): + collector = [] while True: - time.sleep(self.config["textthreaddelay"] / 1000) - if self.newline_delaywait.empty(): + + _data, tms = self.newline_delaywait.get() + collector.append(_data) + now = time.time() + time.sleep(min(now - tms, self.config["textthreaddelay"])/1000) + if not self.newline_delaywait.empty(): continue - collector = [] - while self.newline_delaywait.empty() == False: - collector.append(self.newline_delaywait.get()) try: collector.sort(key=lambda xx: self.selectedhook.index(xx[0])) except: pass - collector = "\n".join([_[1] for _ in collector]) - self.newline.put(collector) - self.runonce_line = collector + _collector = "\n".join([_[1] for _ in collector]) + self.newline.put(_collector) + self.runonce_line = _collector + collector.clear() + + def handle_output(self, hc, hn, tp, output): @@ -471,7 +476,7 @@ class texthook(basetext): self.runonce_line = output else: if key in self.selectedhook: - self.newline_delaywait.put((key, output)) + self.newline_delaywait.put(((key, output), time.time())) if key == self.selectinghook: gobject.baseobject.hookselectdialog.getnewsentencesignal.emit(output) diff --git a/LunaTranslator/LunaTranslator/translator/basetranslator.py b/LunaTranslator/LunaTranslator/translator/basetranslator.py index 9fa300e4..e0d065ee 100644 --- a/LunaTranslator/LunaTranslator/translator/basetranslator.py +++ b/LunaTranslator/LunaTranslator/translator/basetranslator.py @@ -1,15 +1,13 @@ from traceback import print_exc from queue import Queue - -from myutils.config import globalconfig, translatorsetting, getlangtgt from threading import Thread import time, types import zhconv, gobject import sqlite3, os -from myutils.commonbase import commonbase import functools -from myutils.utils import stringfyerror, autosql, PriorityQueue -from myutils.commonbase import ArgsEmptyExc +from myutils.config import globalconfig, translatorsetting +from myutils.utils import stringfyerror, autosql, PriorityQueue, getlangtgt +from myutils.commonbase import ArgsEmptyExc, commonbase class TimeOut(Exception): diff --git a/LunaTranslator/LunaTranslator/tts/gtts.py b/LunaTranslator/LunaTranslator/tts/gtts.py index eeb7ff56..f32da756 100644 --- a/LunaTranslator/LunaTranslator/tts/gtts.py +++ b/LunaTranslator/LunaTranslator/tts/gtts.py @@ -598,7 +598,7 @@ class gTTSError(Exception): from tts.basettsclass import TTSbase -from myutils.config import getlangsrc +from myutils.utils import getlangsrc class TTS(TTSbase): diff --git a/LunaTranslator/files/lang/ar.json b/LunaTranslator/files/lang/ar.json index 8c0f2df4..f3dd71d8 100644 --- a/LunaTranslator/files/lang/ar.json +++ b/LunaTranslator/files/lang/ar.json @@ -638,7 +638,6 @@ "记忆选定区域": "اختيار الذاكرة", "关闭": "غلق", "TGW语言模型": "TGW نموذج اللغة", - "自动切换源语言": "التبديل التلقائي لغة المصدر", "命令行启动": "بدء تشغيل سطر الأوامر", "文本相似度阈值": "نص التشابه العتبة", "正则": "الكنسي", diff --git a/LunaTranslator/files/lang/cht.json b/LunaTranslator/files/lang/cht.json index e834894f..ad402f58 100644 --- a/LunaTranslator/files/lang/cht.json +++ b/LunaTranslator/files/lang/cht.json @@ -638,7 +638,6 @@ "记忆选定区域": "記憶選定區域", "关闭": "關閉", "TGW语言模型": "TGW語言模型", - "自动切换源语言": "自動切換源語言", "命令行启动": "命令列啟動", "文本相似度阈值": "文字相似度閾值", "正则": "正則", diff --git a/LunaTranslator/files/lang/en.json b/LunaTranslator/files/lang/en.json index 60450ddf..16f12489 100644 --- a/LunaTranslator/files/lang/en.json +++ b/LunaTranslator/files/lang/en.json @@ -638,7 +638,6 @@ "记忆选定区域": "Memory selection area", "关闭": "close", "TGW语言模型": "TGW language model", - "自动切换源语言": "Automatically switch source language", "命令行启动": "Command line startup", "文本相似度阈值": "Text similarity threshold", "正则": "Regular", diff --git a/LunaTranslator/files/lang/es.json b/LunaTranslator/files/lang/es.json index 45e35816..20854189 100644 --- a/LunaTranslator/files/lang/es.json +++ b/LunaTranslator/files/lang/es.json @@ -638,7 +638,6 @@ "记忆选定区域": "Área seleccionada de memoria", "关闭": "Cierre", "TGW语言模型": "Modelo lingüístico tgw", - "自动切换源语言": "Cambiar automáticamente el lenguaje fuente", "命令行启动": "Se inicia la línea de órdenes", "文本相似度阈值": "Umbral de similitud de texto", "正则": "Regular", diff --git a/LunaTranslator/files/lang/fr.json b/LunaTranslator/files/lang/fr.json index 50047bd8..b231c5c2 100644 --- a/LunaTranslator/files/lang/fr.json +++ b/LunaTranslator/files/lang/fr.json @@ -638,7 +638,6 @@ "记忆选定区域": "Mémoriser la zone sélectionnée", "关闭": "Fermé", "TGW语言模型": "Modèle de langage tgw", - "自动切换源语言": "Changement automatique de langue source", "命令行启动": "Démarrage de la ligne de commande", "文本相似度阈值": "Seuil de similarité du texte", "正则": "Régulière", diff --git a/LunaTranslator/files/lang/it.json b/LunaTranslator/files/lang/it.json index 1fc491b9..56dc83e2 100644 --- a/LunaTranslator/files/lang/it.json +++ b/LunaTranslator/files/lang/it.json @@ -638,7 +638,6 @@ "记忆选定区域": "Area di selezione della memoria", "关闭": "chiudi", "TGW语言模型": "Modello linguistico TGW", - "自动切换源语言": "Cambia automaticamente la lingua sorgente", "命令行启动": "Avvio della riga di comando", "文本相似度阈值": "Soglia di somiglianza del testo", "正则": "regolare", diff --git a/LunaTranslator/files/lang/ja.json b/LunaTranslator/files/lang/ja.json index 1260386a..56159f20 100644 --- a/LunaTranslator/files/lang/ja.json +++ b/LunaTranslator/files/lang/ja.json @@ -638,7 +638,6 @@ "记忆选定区域": "メモリ選択領域", "关闭": "閉じる", "TGW语言模型": "TGW言語モデル", - "自动切换源语言": "ソース言語の自動切り替え", "命令行启动": "コマンドライン起動", "文本相似度阈值": "テキスト類似度しきい値", "正则": "正則", diff --git a/LunaTranslator/files/lang/ko.json b/LunaTranslator/files/lang/ko.json index bd60df87..4fb366ae 100644 --- a/LunaTranslator/files/lang/ko.json +++ b/LunaTranslator/files/lang/ko.json @@ -638,7 +638,6 @@ "记忆选定区域": "선택한 영역 기억하기", "关闭": "닫기", "TGW语言模型": "TGW 언어 모델", - "自动切换源语言": "소스 언어 자동 전환", "命令行启动": "명령줄 시작", "文本相似度阈值": "텍스트 유사도 임계값", "正则": "정규", diff --git a/LunaTranslator/files/lang/pl.json b/LunaTranslator/files/lang/pl.json index d3142fad..55eac570 100644 --- a/LunaTranslator/files/lang/pl.json +++ b/LunaTranslator/files/lang/pl.json @@ -638,7 +638,6 @@ "记忆选定区域": "Obszar wyboru pamięci", "关闭": "zamknij", "TGW语言模型": "Model językowy TGW", - "自动切换源语言": "Automatycznie przełączaj język źródłowy", "命令行启动": "Uruchamianie wiersza poleceń", "文本相似度阈值": "Próg podobieństwa tekstu", "正则": "regularne", diff --git a/LunaTranslator/files/lang/ru.json b/LunaTranslator/files/lang/ru.json index 68b471eb..50814dc1 100644 --- a/LunaTranslator/files/lang/ru.json +++ b/LunaTranslator/files/lang/ru.json @@ -638,7 +638,6 @@ "记忆选定区域": "Запоминание выбранной области", "关闭": "Закрыть", "TGW语言模型": "Языковая модель TGW", - "自动切换源语言": "Автоматическое переключение исходного языка", "命令行启动": "Запуск командной строки", "文本相似度阈值": "Порог сходства текста", "正则": "Регулярно", diff --git a/LunaTranslator/files/lang/th.json b/LunaTranslator/files/lang/th.json index f7be8f86..883f9f30 100644 --- a/LunaTranslator/files/lang/th.json +++ b/LunaTranslator/files/lang/th.json @@ -638,7 +638,6 @@ "记忆选定区域": "หน่วยความจำพื้นที่ที่เลือก", "关闭": "ปิด", "TGW语言模型": "รูปแบบภาษา TGW", - "自动切换源语言": "สลับภาษาต้นทางโดยอัตโนมัติ", "命令行启动": "เริ่มบรรทัดคำสั่ง", "文本相似度阈值": "เกณฑ์ความคล้ายคลึงกันของข้อความ", "正则": "กฎทั่วไป", diff --git a/LunaTranslator/files/lang/tr.json b/LunaTranslator/files/lang/tr.json index 8cf97fcd..a78a5106 100644 --- a/LunaTranslator/files/lang/tr.json +++ b/LunaTranslator/files/lang/tr.json @@ -638,7 +638,6 @@ "记忆选定区域": "Hafıza seçim alanı", "关闭": "kapat", "TGW语言模型": "TGW dil modeli", - "自动切换源语言": "Avtomatik kaynak dilini değiştir", "命令行启动": "Komut satırı başlatma", "文本相似度阈值": "Metin benzerliği eşiği", "正则": "normal", diff --git a/LunaTranslator/files/lang/uk.json b/LunaTranslator/files/lang/uk.json index ed7d665b..2aecbd49 100644 --- a/LunaTranslator/files/lang/uk.json +++ b/LunaTranslator/files/lang/uk.json @@ -638,7 +638,6 @@ "记忆选定区域": "Область вибору пам' яті", "关闭": "закрити", "TGW语言模型": "Модель мови TGW", - "自动切换源语言": "Автоматично перемикати мову джерела", "命令行启动": "Запуск командного рядка", "文本相似度阈值": "Праг подібності до тексту", "正则": "звичайний", diff --git a/LunaTranslator/files/lang/vi.json b/LunaTranslator/files/lang/vi.json index e4b1c18b..6db66298 100644 --- a/LunaTranslator/files/lang/vi.json +++ b/LunaTranslator/files/lang/vi.json @@ -638,7 +638,6 @@ "记忆选定区域": "Ghi nhớ vùng chọn", "关闭": "Đóng cửa", "TGW语言模型": "Mô hình ngôn ngữ TGW", - "自动切换源语言": "Tự động chuyển đổi ngôn ngữ nguồn", "命令行启动": "Chạy dòng lệnh", "文本相似度阈值": "Ngưỡng tương tự văn bản", "正则": "Chính quy", diff --git a/LunaTranslator/files/lang/zh.json b/LunaTranslator/files/lang/zh.json index b1f4445d..7c82dd30 100644 --- a/LunaTranslator/files/lang/zh.json +++ b/LunaTranslator/files/lang/zh.json @@ -640,7 +640,6 @@ "记忆选定区域": "", "关闭": "", "TGW语言模型": "", - "自动切换源语言": "", "命令行启动": "", "文本相似度阈值": "", "正则": "", diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 1ec496f5..3c5d5e42 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 3) set(VERSION_MINOR 6) -set(VERSION_PATCH 3) +set(VERSION_PATCH 4) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)