From 22aceb3814772a348f7bc0cb31b0c40c39e82a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sun, 3 Nov 2024 16:09:42 +0800 Subject: [PATCH] fix --- src/LunaTranslator/gui/codeacceptdialog.py | 6 +- .../gui/dialog_savedgame_setting.py | 36 +++++++--- src/LunaTranslator/gui/inputdialog.py | 12 ++-- src/LunaTranslator/gui/pretransfile.py | 11 ++- .../gui/setting_display_text.py | 5 +- .../gui/setting_textinput_ocr.py | 10 +-- src/LunaTranslator/gui/usefulwidget.py | 71 +++++++++++++------ src/LunaTranslator/myutils/localetools.py | 4 +- src/LunaTranslator/myutils/utils.py | 7 +- src/LunaTranslator/ocrengines/local.py | 4 +- src/files/lang/ar.json | 3 +- src/files/lang/cht.json | 3 +- src/files/lang/cs.json | 3 +- src/files/lang/de.json | 3 +- src/files/lang/en.json | 3 +- src/files/lang/es.json | 3 +- src/files/lang/fr.json | 3 +- src/files/lang/it.json | 3 +- src/files/lang/ja.json | 3 +- src/files/lang/ko.json | 3 +- src/files/lang/nl.json | 3 +- src/files/lang/pl.json | 3 +- src/files/lang/pt.json | 3 +- src/files/lang/ru.json | 3 +- src/files/lang/sv.json | 3 +- src/files/lang/th.json | 3 +- src/files/lang/tr.json | 3 +- src/files/lang/uk.json | 3 +- src/files/lang/vi.json | 3 +- src/files/lang/zh.json | 3 +- src/plugins/CMakeLists.txt | 2 +- 31 files changed, 144 insertions(+), 84 deletions(-) diff --git a/src/LunaTranslator/gui/codeacceptdialog.py b/src/LunaTranslator/gui/codeacceptdialog.py index f271e205..23f50e6f 100644 --- a/src/LunaTranslator/gui/codeacceptdialog.py +++ b/src/LunaTranslator/gui/codeacceptdialog.py @@ -8,7 +8,7 @@ from gui.usefulwidget import ( threebuttons, getlineedit, TableViewW, - LFocusCombo, + SuperCombo, ) from gui.dynalang import LStandardItemModel, LDialog, LCheckBox, LLabel @@ -67,7 +67,7 @@ class codeacceptdialog(LDialog): itemsaver = QStandardItem() self.model.setItem(row, 0, itemsaver) index = self.model.index(row, 0) - codecombox = LFocusCombo() + codecombox = SuperCombo() codecombox.addItems((nowsuppertcodes)) codecombox.setCurrentIndex(idx) self.table.setIndexWidget(index, codecombox) @@ -114,7 +114,7 @@ class codeacceptdialog(LDialog): def clicked1(self): itemsaver = QStandardItem() self.model.insertRow(0, [itemsaver]) - codecombox = LFocusCombo() + codecombox = SuperCombo() codecombox.addItems((nowsuppertcodes)) self._setcode_i(codecombox, itemsaver) codecombox.currentIndexChanged.connect( diff --git a/src/LunaTranslator/gui/dialog_savedgame_setting.py b/src/LunaTranslator/gui/dialog_savedgame_setting.py index 9ab43a12..9d738c4b 100644 --- a/src/LunaTranslator/gui/dialog_savedgame_setting.py +++ b/src/LunaTranslator/gui/dialog_savedgame_setting.py @@ -324,18 +324,26 @@ class dialog_setting_game_internal(QWidget): print_exc() def metadataorigin(self, formLayout: LFormLayout, gameuid): - formLayout.addRow( - "首选的", - getsimplecombobox( - list(targetmod.keys()), - globalconfig, - "primitivtemetaorigin", - internal=list(targetmod.keys()), - static=True, - ), + combo = getsimplecombobox( + ["无"] + list(targetmod.keys()), + globalconfig, + "primitivtemetaorigin", + internal=[None] + list(targetmod.keys()), ) + formLayout.addRow("首选的", combo) formLayout.addRow(None, QLabel()) - for key in targetmod: + + def valid(idx, x): + if x: + if combo.currentIndex() == 0: + combo.setCurrentIndex(idx + 1) + combo.setRowVisible(idx + 1, True) + else: + if combo.currentIndex() == idx + 1: + combo.setCurrentIndex(0) + combo.setRowVisible(idx + 1, False) + + for i, key in enumerate(targetmod): try: idname = targetmod[key].idname @@ -351,8 +359,14 @@ class dialog_setting_game_internal(QWidget): vndbid.returnPressed.connect( functools.partial(gamdidchangedtask, key, idname, gameuid) ) + if not globalconfig["metadata"][key]["auto"]: + combo.setRowVisible(i + 1, False) _vbox_internal = [ - getsimpleswitch(globalconfig["metadata"][key], "auto"), + getsimpleswitch( + globalconfig["metadata"][key], + "auto", + callback=functools.partial(valid, i), + ), vndbid, getIconButton( functools.partial(self.openrefmainpage, key, idname, gameuid), diff --git a/src/LunaTranslator/gui/inputdialog.py b/src/LunaTranslator/gui/inputdialog.py index 6558d20d..1dd7f711 100644 --- a/src/LunaTranslator/gui/inputdialog.py +++ b/src/LunaTranslator/gui/inputdialog.py @@ -14,7 +14,7 @@ from gui.usefulwidget import ( TableViewW, getsimplepatheditor, FocusSpin, - LFocusCombo, + SuperCombo, getsimplecombobox, getspinbox, SplitLine, @@ -261,7 +261,7 @@ class yuyinzhidingsetting(LDialog): self.table.setindexdata(self.model.index(row, 3), item['target']) def createacombox(self, config): - com = LFocusCombo() + com = SuperCombo() com.addItems(["跳过", "默认", "选择声音"]) target = config.get("target", "skip") com.target = target @@ -278,7 +278,7 @@ class yuyinzhidingsetting(LDialog): ) return com - def __comchange(self, com: LFocusCombo, config, idx): + def __comchange(self, com: SuperCombo, config, idx): if idx == 0: com.target = "skip" if com.count() > 3: @@ -527,7 +527,7 @@ class autoinitdialog__(LDialog): lineW = listediterline(line["name"], line["header"], __list) regist[key] = functools.partial(__getv, __list) elif line["type"] == "combo": - lineW = LFocusCombo() + lineW = SuperCombo() if "list_function" in line: try: func = getattr( @@ -546,10 +546,10 @@ class autoinitdialog__(LDialog): elif line["type"] == "lineedit_or_combo": line1 = QLineEdit() lineW = QHBoxLayout() - combo = LFocusCombo() + combo = SuperCombo() combo.setLineEdit(line1) - def __refresh(regist, line, combo: LFocusCombo): + def __refresh(regist, line, combo: SuperCombo): try: func = getattr( importlib.import_module(modelfile), line["list_function"] diff --git a/src/LunaTranslator/gui/pretransfile.py b/src/LunaTranslator/gui/pretransfile.py index 3d433ec5..91c3b481 100644 --- a/src/LunaTranslator/gui/pretransfile.py +++ b/src/LunaTranslator/gui/pretransfile.py @@ -3,7 +3,7 @@ import sqlite3, os, json, functools from traceback import print_exc from myutils.config import globalconfig, _TR from myutils.utils import autosql, dynamicapiname -from gui.usefulwidget import getQMessageBox, LFocusCombo +from gui.usefulwidget import getQMessageBox, SuperCombo from gui.dynalang import LFormLayout, LPushButton, LDialog from textsource.texthook import splitembedlines from collections import Counter @@ -43,15 +43,14 @@ def sqlite2json2( for _, __ in Counter(collect).most_common(): if _ in globalconfig["fanyi"]: _collect.append(_) - collect = _collect dialog = LDialog(self, Qt.WindowType.WindowCloseButtonHint) # 自定义一个dialog dialog.setWindowTitle("导出翻译记录为json文件") dialog.resize(QSize(800, 10)) formLayout = LFormLayout(dialog) # 配置layout dialog.setLayout(formLayout) - combo = LFocusCombo() - combo.addItems([dynamicapiname(_) for _ in collect]) + combo = SuperCombo() + combo.addItems([dynamicapiname(_) for _ in _collect], _collect) formLayout.addRow("首选翻译", combo) e = QLineEdit(sqlitefile[: -(len(".sqlite"))]) @@ -81,8 +80,8 @@ def sqlite2json2( button.rejected.connect(dialog.close) def __savefunction(target, existsmerge, isforembed): - if len(collect) > 0: - transkirokuuse = collect[combo.currentIndex()] + if len(_collect) > 0: + transkirokuuse = combo.getIndexData(combo.currentIndex()) for k in js_format2: js_format2[k] = js_format2[k].get(transkirokuuse, "") diff --git a/src/LunaTranslator/gui/setting_display_text.py b/src/LunaTranslator/gui/setting_display_text.py index a48b1d73..156b1bcd 100644 --- a/src/LunaTranslator/gui/setting_display_text.py +++ b/src/LunaTranslator/gui/setting_display_text.py @@ -23,9 +23,8 @@ from gui.usefulwidget import ( selectcolor, listediter, FocusFontCombo, - LFocusCombo, + SuperCombo, getspinbox, - LLabel, getsmalllabel, SplitLine, ) @@ -244,7 +243,7 @@ def resetgroudswitchcallback(self, group): return clearlayout(self.goodfontsettingsformlayout) - goodfontgroupswitch = LFocusCombo() + goodfontgroupswitch = SuperCombo() self.seletengeinecombo.lastindex = self.seletengeinecombo.currentIndex() if group == "webview" or group == "QWebEngine": _btn = LPushButton("编辑") diff --git a/src/LunaTranslator/gui/setting_textinput_ocr.py b/src/LunaTranslator/gui/setting_textinput_ocr.py index 01ab2dfd..6c88cea0 100644 --- a/src/LunaTranslator/gui/setting_textinput_ocr.py +++ b/src/LunaTranslator/gui/setting_textinput_ocr.py @@ -18,7 +18,7 @@ from gui.usefulwidget import ( saveposwindow, pixmapviewer, LStandardItemModel, - LFocusCombo, + SuperCombo, threebuttons, ) import gobject, qtawesome @@ -93,11 +93,11 @@ class triggereditor(LDialog): self.vkeys = list(static_data["vkcode_map"].keys()) for row, k in enumerate(self.list): # 2 self.hcmodel.insertRow(row, [QStandardItem(), QStandardItem()]) - combo = LFocusCombo() + combo = SuperCombo() combo.addItems(self.vkeys) combo.setCurrentIndex(self.vkeys.index(k["vkey"])) self.hctable.setIndexWidget(self.hcmodel.index(row, 0), combo) - combo = LFocusCombo() + combo = SuperCombo() combo.addItems(["按下", "松开"]) combo.setCurrentIndex(k["event"]) self.hctable.setIndexWidget(self.hcmodel.index(row, 1), combo) @@ -122,10 +122,10 @@ class triggereditor(LDialog): def click1(self): self.hcmodel.insertRow(0, [QStandardItem(), QStandardItem()]) - combo = LFocusCombo() + combo = SuperCombo() combo.addItems(self.vkeys) self.hctable.setIndexWidget(self.hcmodel.index(0, 0), combo) - combo = LFocusCombo() + combo = SuperCombo() combo.addItems(["按下", "松开"]) self.hctable.setIndexWidget(self.hcmodel.index(0, 1), combo) diff --git a/src/LunaTranslator/gui/usefulwidget.py b/src/LunaTranslator/gui/usefulwidget.py index 75440548..bc1ceb58 100644 --- a/src/LunaTranslator/gui/usefulwidget.py +++ b/src/LunaTranslator/gui/usefulwidget.py @@ -34,24 +34,54 @@ class FocusCombo(QComboBox): else: return super().wheelEvent(e) +class SuperCombo(FocusCombo): + Visoriginrole = Qt.ItemDataRole.UserRole + 1 + Internalrole = Visoriginrole + 1 -class LFocusCombo(FocusCombo): - def __init__(self, parent: QWidget = None) -> None: + def __init__(self, parent=None, static=False) -> None: super().__init__(parent) - self.__items = None + self.mo = QStandardItemModel() + self.static = static + self.setModel(self.mo) + self.vu = QListView() + self.setView(self.vu) - def addItems(self, items): - self.__items = items - super().addItems(_TRL(items)) + def addItem(self, item, internal=None): + item1 = QStandardItem(_TR(item) if not self.static else item) + item1.setData(item, self.Visoriginrole) + item1.setData(internal, self.Internalrole) + self.mo.appendRow(item1) def clear(self): - self.__items = [] - super().clear() + self.mo.clear() + + def addItems(self, items, internals=None): + for i, item in enumerate(items): + iternal = None + if internals and i < len(internals): + iternal = internals[i] + self.addItem(item, iternal) def updatelangtext(self): - if self.__items: - for i in range(self.count()): - self.setItemText(i, _TR(self.__items[i])) + if self.static: + return + for _ in range(self.mo.rowCount()): + item = self.mo.item(_, 0) + item.setData( + _TR(item.data(self.Visoriginrole)), Qt.ItemDataRole.DisplayRole + ) + + def getIndexData(self, index): + item = self.mo.item(index, 0) + return item.data(self.Internalrole) + + def setRowVisible(self, row, vis): + self.vu.setRowHidden(row, not vis) + item = self.mo.item(row, 0) + if vis: + item.setFlags(item.flags() | Qt.ItemFlag.ItemIsEnabled) + else: + item.setFlags(item.flags() & ~Qt.ItemFlag.ItemIsEnabled) class FocusFontCombo(QFontComboBox, FocusCombo): @@ -860,8 +890,8 @@ def callbackwrap(d, k, call, _): print_exc() -def comboboxcallbackwrap(internal, d, k, call, _): - _ = internal[_] +def comboboxcallbackwrap(s: SuperCombo, d, k, call, _): + _ = s.getIndexData(_) d[k] = _ if call: @@ -874,12 +904,8 @@ def comboboxcallbackwrap(internal, d, k, call, _): def getsimplecombobox( lst, d, k, callback=None, fixedsize=False, internal=None, static=False, emit=False ): - if static: - s = FocusCombo() - else: - - s = LFocusCombo() - s.addItems(lst) + s = SuperCombo(static=static) + s.addItems(lst, internal) if internal: if len(internal): @@ -888,7 +914,7 @@ def getsimplecombobox( s.setCurrentIndex(internal.index(d[k])) s.currentIndexChanged.connect( - functools.partial(comboboxcallbackwrap, internal, d, k, callback) + functools.partial(comboboxcallbackwrap, s, d, k, callback) ) else: if len(lst): @@ -1908,7 +1934,7 @@ class listediter(LDialog): self.hcmodel.insertRow(row, [item]) if candidates: - combo = LFocusCombo() + combo = SuperCombo() _vis = self.candidates if self.namemapfunction: _vis = [self.namemapfunction(_) for _ in _vis] @@ -2021,7 +2047,7 @@ class listediter(LDialog): self.internalrealname.insert(0, self.candidates[0]) item = QStandardItem("") self.hcmodel.insertRow(0, [item]) - combo = LFocusCombo() + combo = SuperCombo() _vis = self.candidates if self.namemapfunction: _vis = [self.namemapfunction(_) for _ in _vis] @@ -2357,6 +2383,7 @@ class FQLineEdit(QLineEdit): class LRButton(LPushButton): rightclick = pyqtSignal() + def mouseReleaseEvent(self, ev: QMouseEvent) -> None: if self.rect().contains(ev.pos()): if ev.button() == Qt.MouseButton.RightButton: diff --git a/src/LunaTranslator/myutils/localetools.py b/src/LunaTranslator/myutils/localetools.py index 397484d4..fbfb9ef8 100644 --- a/src/LunaTranslator/myutils/localetools.py +++ b/src/LunaTranslator/myutils/localetools.py @@ -6,7 +6,7 @@ from gui.usefulwidget import ( getsimplecombobox, getspinbox, getsimpleswitch, - LFocusCombo, + SuperCombo, getspinbox, SplitLine, getsimplepatheditor, @@ -63,7 +63,7 @@ class settingxx: def settingxx(self, layout, config, call1, call2): - switch = LFocusCombo() + switch = SuperCombo() switch.addItems(["外部", "内置"]) lay1 = LFormLayout() lay2 = LFormLayout() diff --git a/src/LunaTranslator/myutils/utils.py b/src/LunaTranslator/myutils/utils.py index e6fcb50b..c4237a88 100644 --- a/src/LunaTranslator/myutils/utils.py +++ b/src/LunaTranslator/myutils/utils.py @@ -216,7 +216,9 @@ def trysearchforid_1(gameuid, searchargs: list, target=None): infoid = None if target is None: primitivtemetaorigin = globalconfig["primitivtemetaorigin"] - __ = [primitivtemetaorigin] + __ = [] + if primitivtemetaorigin: + __.append(primitivtemetaorigin) for k in targetmod: if k == primitivtemetaorigin: continue @@ -1040,7 +1042,6 @@ def is_ascii_control(c: str): return cinranges(c, (0, 0x1F), (0x7F, 0xA0)) - def checkchaos(text): code = globalconfig["accept_encoding"] text = filter(lambda x: x not in globalconfig["accept_character"], text) @@ -1048,7 +1049,7 @@ def checkchaos(text): if globalconfig["accept_use_unicode"]: _start = globalconfig["accept_use_unicode_start"] _end = globalconfig["accept_use_unicode_end"] - return not all(cinranges(c,(_start, _end)) for c in text) + return not all(cinranges(c, (_start, _end)) for c in text) else: text = "".join(text) for c in code: diff --git a/src/LunaTranslator/ocrengines/local.py b/src/LunaTranslator/ocrengines/local.py index 657f2f35..268598dc 100644 --- a/src/LunaTranslator/ocrengines/local.py +++ b/src/LunaTranslator/ocrengines/local.py @@ -17,7 +17,7 @@ import os import gobject, functools from traceback import print_exc from qtsymbols import * -from gui.usefulwidget import LFocusCombo, getboxlayout, getQMessageBox +from gui.usefulwidget import SuperCombo, getboxlayout, getQMessageBox from gui.dynalang import LPushButton, LFormLayout, LLabel @@ -156,7 +156,7 @@ def question(dialog: QDialog): dialog.setLayout(formLayout) supportlang = LLabel() formLayout.addRow("当前支持的语言", supportlang) - combo = LFocusCombo() + combo = SuperCombo() allsupports = [] def callback(): diff --git a/src/files/lang/ar.json b/src/files/lang/ar.json index 4175123f..cae012ef 100644 --- a/src/files/lang/ar.json +++ b/src/files/lang/ar.json @@ -810,5 +810,6 @@ "清除OCR范围": "مسح نطاق التعرف الضوئي على الحروف", "重命名": "إعادة تسمية", "应用ID": "معرف التطبيق", - "应用密钥": "مفتاح التطبيق" + "应用密钥": "مفتاح التطبيق", + "无": "لا" } \ No newline at end of file diff --git a/src/files/lang/cht.json b/src/files/lang/cht.json index 6a247de2..0baedc55 100644 --- a/src/files/lang/cht.json +++ b/src/files/lang/cht.json @@ -810,5 +810,6 @@ "清除OCR范围": "清除OCR範圍", "重命名": "重命名", "应用ID": "應用ID", - "应用密钥": "應用金鑰" + "应用密钥": "應用金鑰", + "无": "無" } \ No newline at end of file diff --git a/src/files/lang/cs.json b/src/files/lang/cs.json index c8c1fd74..884661d6 100644 --- a/src/files/lang/cs.json +++ b/src/files/lang/cs.json @@ -810,5 +810,6 @@ "清除OCR范围": "Vymazat rozsah OCR", "重命名": "přejmenovat", "应用ID": "ID aplikace", - "应用密钥": "Klíč aplikace" + "应用密钥": "Klíč aplikace", + "无": "nic" } \ No newline at end of file diff --git a/src/files/lang/de.json b/src/files/lang/de.json index b8450d53..0f0f82c7 100644 --- a/src/files/lang/de.json +++ b/src/files/lang/de.json @@ -810,5 +810,6 @@ "清除OCR范围": "OCR-Bereich löschen", "重命名": "umbenennen", "应用ID": "Anwendungs-ID", - "应用密钥": "Anwendungsschlüssel" + "应用密钥": "Anwendungsschlüssel", + "无": "nichts" } \ No newline at end of file diff --git a/src/files/lang/en.json b/src/files/lang/en.json index fb40b203..09778eaf 100644 --- a/src/files/lang/en.json +++ b/src/files/lang/en.json @@ -810,5 +810,6 @@ "清除OCR范围": "Clear OCR range", "重命名": "rename", "应用ID": "Application ID", - "应用密钥": "Application key" + "应用密钥": "Application key", + "无": "nothing" } \ No newline at end of file diff --git a/src/files/lang/es.json b/src/files/lang/es.json index ff2d4ed2..5bcf13e9 100644 --- a/src/files/lang/es.json +++ b/src/files/lang/es.json @@ -810,5 +810,6 @@ "清除OCR范围": "Eliminar el rango OCR", "重命名": "Cambiar el nombre", "应用ID": "ID de la aplicación", - "应用密钥": "Clave de aplicación" + "应用密钥": "Clave de aplicación", + "无": "Ninguno" } \ No newline at end of file diff --git a/src/files/lang/fr.json b/src/files/lang/fr.json index f53ace16..2f81e7cc 100644 --- a/src/files/lang/fr.json +++ b/src/files/lang/fr.json @@ -810,5 +810,6 @@ "清除OCR范围": "Effacer la plage ocr", "重命名": "Renommer", "应用ID": "Id de l'application", - "应用密钥": "Appliquer la clé" + "应用密钥": "Appliquer la clé", + "无": "Aucun" } \ No newline at end of file diff --git a/src/files/lang/it.json b/src/files/lang/it.json index e1e94d61..ab70802f 100644 --- a/src/files/lang/it.json +++ b/src/files/lang/it.json @@ -810,5 +810,6 @@ "清除OCR范围": "Cancella intervallo OCR", "重命名": "rinomina", "应用ID": "ID dell'applicazione", - "应用密钥": "Chiave dell'applicazione" + "应用密钥": "Chiave dell'applicazione", + "无": "niente" } \ No newline at end of file diff --git a/src/files/lang/ja.json b/src/files/lang/ja.json index f9b81275..f8360d9e 100644 --- a/src/files/lang/ja.json +++ b/src/files/lang/ja.json @@ -810,5 +810,6 @@ "清除OCR范围": "OCR範囲のクリア", "重命名": "名前を変更", "应用ID": "アプリケーションID", - "应用密钥": "キーの適用" + "应用密钥": "キーの適用", + "无": "なし" } \ No newline at end of file diff --git a/src/files/lang/ko.json b/src/files/lang/ko.json index b6427725..41b90473 100644 --- a/src/files/lang/ko.json +++ b/src/files/lang/ko.json @@ -810,5 +810,6 @@ "清除OCR范围": "OCR 범위 지우기", "重命名": "이름 바꾸기", "应用ID": "적용 ID", - "应用密钥": "키 적용" + "应用密钥": "키 적용", + "无": "없음" } \ No newline at end of file diff --git a/src/files/lang/nl.json b/src/files/lang/nl.json index 2bd4f11e..4dccddd3 100644 --- a/src/files/lang/nl.json +++ b/src/files/lang/nl.json @@ -810,5 +810,6 @@ "清除OCR范围": "OCR-bereik wissen", "重命名": "hernoemen", "应用ID": "Applicatie-ID", - "应用密钥": "Toepassingssleutel" + "应用密钥": "Toepassingssleutel", + "无": "niets" } \ No newline at end of file diff --git a/src/files/lang/pl.json b/src/files/lang/pl.json index a63a5605..d00ec876 100644 --- a/src/files/lang/pl.json +++ b/src/files/lang/pl.json @@ -810,5 +810,6 @@ "清除OCR范围": "Wyczyść zakres OCR", "重命名": "zmień nazwę", "应用ID": "Identyfikator aplikacji", - "应用密钥": "Klucz aplikacji" + "应用密钥": "Klucz aplikacji", + "无": "nic" } \ No newline at end of file diff --git a/src/files/lang/pt.json b/src/files/lang/pt.json index 2c1db8f0..f070326f 100644 --- a/src/files/lang/pt.json +++ b/src/files/lang/pt.json @@ -810,5 +810,6 @@ "清除OCR范围": "Limpar o intervalo de OCR", "重命名": "renomear", "应用ID": "ID da Aplicação", - "应用密钥": "Chave da aplicação" + "应用密钥": "Chave da aplicação", + "无": "nada" } \ No newline at end of file diff --git a/src/files/lang/ru.json b/src/files/lang/ru.json index ef5aefe3..0410e147 100644 --- a/src/files/lang/ru.json +++ b/src/files/lang/ru.json @@ -810,5 +810,6 @@ "清除OCR范围": "Очистить диапазон OCR", "重命名": "Переименовать", "应用ID": "Использовать ID", - "应用密钥": "Применить ключ" + "应用密钥": "Применить ключ", + "无": "Нет" } \ No newline at end of file diff --git a/src/files/lang/sv.json b/src/files/lang/sv.json index 86be488b..8f13bd8b 100644 --- a/src/files/lang/sv.json +++ b/src/files/lang/sv.json @@ -810,5 +810,6 @@ "清除OCR范围": "Rensa OCR-område", "重命名": "Byt namn", "应用ID": "Program- ID", - "应用密钥": "Programnyckel" + "应用密钥": "Programnyckel", + "无": "ingenting" } \ No newline at end of file diff --git a/src/files/lang/th.json b/src/files/lang/th.json index a273da50..ebc728bb 100644 --- a/src/files/lang/th.json +++ b/src/files/lang/th.json @@ -810,5 +810,6 @@ "清除OCR范围": "ล้างช่วง OCR", "重命名": "เปลี่ยนชื่อ", "应用ID": "สมัคร ID", - "应用密钥": "ใช้คีย์" + "应用密钥": "ใช้คีย์", + "无": "ไม่มี" } \ No newline at end of file diff --git a/src/files/lang/tr.json b/src/files/lang/tr.json index 7c57ad4c..c0c813aa 100644 --- a/src/files/lang/tr.json +++ b/src/files/lang/tr.json @@ -810,5 +810,6 @@ "清除OCR范围": "OCR aralığını temizle", "重命名": "Yeniden Adlandır", "应用ID": "Uygulama Kimliği", - "应用密钥": "Uygulama anahtarı" + "应用密钥": "Uygulama anahtarı", + "无": "Hiçbir şey yok." } \ No newline at end of file diff --git a/src/files/lang/uk.json b/src/files/lang/uk.json index b7e0d926..d99fa937 100644 --- a/src/files/lang/uk.json +++ b/src/files/lang/uk.json @@ -810,5 +810,6 @@ "清除OCR范围": "Очистити діапазон OCR", "重命名": "перейменувати", "应用ID": "ІД програми", - "应用密钥": "Ключ програми" + "应用密钥": "Ключ програми", + "无": "нічого" } \ No newline at end of file diff --git a/src/files/lang/vi.json b/src/files/lang/vi.json index 97df44c9..a5c5eeeb 100644 --- a/src/files/lang/vi.json +++ b/src/files/lang/vi.json @@ -810,5 +810,6 @@ "清除OCR范围": "Xóa dải OCR", "重命名": "Thay tên", "应用ID": "Ứng dụng ID", - "应用密钥": "Khóa ứng dụng" + "应用密钥": "Khóa ứng dụng", + "无": "Không" } \ No newline at end of file diff --git a/src/files/lang/zh.json b/src/files/lang/zh.json index 5d43cc29..91f07d01 100644 --- a/src/files/lang/zh.json +++ b/src/files/lang/zh.json @@ -810,5 +810,6 @@ "清除OCR范围": "", "重命名": "", "应用ID": "", - "应用密钥": "" + "应用密钥": "", + "无": "" } \ No newline at end of file diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index fd9d0d84..ee316eca 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 53) -set(VERSION_PATCH 10) +set(VERSION_PATCH 11) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)