From 7ea0b91a1b4f6a45db34bb5f730fc391f07e6a17 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: Mon, 12 Aug 2024 02:09:46 +0800 Subject: [PATCH] good --- LunaTranslator/LunaTranslator/cishu/mdict.py | 17 +++--- .../LunaTranslator/gui/inputdialog.py | 3 +- .../LunaTranslator/gui/selecthook.py | 49 +++++++++------- LunaTranslator/LunaTranslator/gui/showword.py | 30 ++++------ .../LunaTranslator/gui/usefulwidget.py | 58 ++++++++++++++++--- .../LunaTranslator/myutils/config.py | 9 ++- .../files/defaultconfig/config.json | 10 +--- LunaTranslator/files/lang/ar.json | 7 ++- LunaTranslator/files/lang/cht.json | 7 ++- LunaTranslator/files/lang/cs.json | 7 ++- LunaTranslator/files/lang/de.json | 7 ++- LunaTranslator/files/lang/en.json | 7 ++- LunaTranslator/files/lang/es.json | 7 ++- LunaTranslator/files/lang/fr.json | 7 ++- LunaTranslator/files/lang/it.json | 7 ++- LunaTranslator/files/lang/ja.json | 7 ++- LunaTranslator/files/lang/ko.json | 7 ++- LunaTranslator/files/lang/nl.json | 7 ++- LunaTranslator/files/lang/pl.json | 7 ++- LunaTranslator/files/lang/pt.json | 7 ++- LunaTranslator/files/lang/ru.json | 7 ++- LunaTranslator/files/lang/sv.json | 7 ++- LunaTranslator/files/lang/th.json | 7 ++- LunaTranslator/files/lang/tr.json | 7 ++- LunaTranslator/files/lang/uk.json | 7 ++- LunaTranslator/files/lang/vi.json | 7 ++- LunaTranslator/files/lang/zh.json | 7 ++- 27 files changed, 191 insertions(+), 125 deletions(-) diff --git a/LunaTranslator/LunaTranslator/cishu/mdict.py b/LunaTranslator/LunaTranslator/cishu/mdict.py index 68a011db..f43bf6fb 100644 --- a/LunaTranslator/LunaTranslator/cishu/mdict.py +++ b/LunaTranslator/LunaTranslator/cishu/mdict.py @@ -2094,14 +2094,17 @@ class mdict(cishubase): for f in paths: if f.strip() == "": continue - self.init_once_mdx(f) - - for _dir, _, _fs in os.walk(self.config["path_dir"]): - for f in _fs: - if not f.lower().endswith(".mdx"): - continue - f = os.path.join(_dir, f) + if not os.path.exists(f): + continue + if os.path.isfile(f): self.init_once_mdx(f) + continue + for _dir, _, _fs in os.walk(f): + for _f in _fs: + if not _f.lower().endswith(".mdx"): + continue + _f = os.path.join(_dir, _f) + self.init_once_mdx(_f) try: with open( diff --git a/LunaTranslator/LunaTranslator/gui/inputdialog.py b/LunaTranslator/LunaTranslator/gui/inputdialog.py index 59bf3689..7fc24167 100644 --- a/LunaTranslator/LunaTranslator/gui/inputdialog.py +++ b/LunaTranslator/LunaTranslator/gui/inputdialog.py @@ -541,12 +541,13 @@ class autoinitdialog(LDialog): lineW = getsimplepatheditor( dd[key], line.get("multi", False), - line["dir"], + line.get("dir", False), line.get("filter", None), callback=functools.partial(__temp.__setitem__, "k"), reflist=__temp["k"], name=line.get("name", ""), header=line.get("name", ""), + dirorfile=line.get("dirorfile", False), ) regist.append([dd, key, functools.partial(__temp.__getitem__, "k")]) diff --git a/LunaTranslator/LunaTranslator/gui/selecthook.py b/LunaTranslator/LunaTranslator/gui/selecthook.py index f6d9db02..5347cc08 100644 --- a/LunaTranslator/LunaTranslator/gui/selecthook.py +++ b/LunaTranslator/LunaTranslator/gui/selecthook.py @@ -146,6 +146,8 @@ class searchhookparam(LDialog): dumpvalues[k] = widget.text() if type(widget) == FocusSpin: dumpvalues[k] = widget.value() + if callable(widget): + dumpvalues[k] = widget() pattern = dumpvalues["pattern"] if "." in pattern: usestruct.length = 1 @@ -162,9 +164,7 @@ class searchhookparam(LDialog): usestruct.boundaryModule = dumpvalues["module"][:120] usestruct.address_method = self.search_addr_range.idx() usestruct.search_method = self.search_method.idx() - usestruct.jittype = ["PC", "YUZU", "PPSSPP", "VITA3K", "RPCS3"].index( - dumpvalues["jittype"] - ) + usestruct.jittype = dumpvalues["jittype"] if self.search_addr_range.idx() == 0: usestruct.minAddress = self.safehex( dumpvalues["startaddr"], usestruct.minAddress @@ -269,7 +269,6 @@ class searchhookparam(LDialog): regwid = addwid = sp elif _type == 2: line = QLineEdit(str(_val)) - line._idx = 0 try: _list = getlistcall() except: @@ -332,16 +331,29 @@ class searchhookparam(LDialog): uselayout=offaddrl, ) + _typelayout = LFormLayout() + + self.layoutsettings.addRow("搜索方式", _typelayout) + _jitcombo = FocusCombo() + _jitcombo.addItems(["PC", "YUZU", "PPSSPP", "VITA3K", "RPCS3"]) self.search_method = QButtonGroup_switch_widegt(self) - self.layoutsettings.addRow("搜索方式", self.search_method) + _jitcombo.currentIndexChanged.connect( + lambda idx: [ + self.search_method.setVisible(idx == 0), + self.resize(self.width(), 1), + ] + ) + self.regists["jittype"] = lambda: _jitcombo.currentIndex() + + _typelayout.addRow("类型", _jitcombo) + + self.layoutsettings.addWidget(self.search_method) patternW, patternWl = getformlayoutw() # presetW,presetWl=getformlayoutw() self.search_method.addW("特征匹配", patternW) self.search_method.addW("函数对齐", QLabel()) self.search_method.addW("函数调用", QLabel()) - widjit, layoutjit = getformlayoutw() - self.search_method.addW("JIT", widjit) autoaddline( "pattern", @@ -353,15 +365,6 @@ class searchhookparam(LDialog): autoaddline( "offset", "相对特征地址的偏移", usestruct.offset, 1, uselayout=patternWl ) - autoaddline( - "jittype", - "type", - "PC", - 2, - uselayout=layoutjit, - getlistcall=lambda: ["PC", "YUZU", "PPSSPP", "VITA3K", "RPCS3"], - listeditable=False, - ) autoaddline("time", "搜索持续时间(s)", usestruct.searchTime // 1000, 1) autoaddline("maxrecords", "搜索结果数上限", usestruct.maxRecords, 1) @@ -616,15 +619,17 @@ class hookselect(closeashidewindow): self.searchtextlayout = QHBoxLayout() self.vboxlayout.addLayout(self.searchtextlayout) self.searchtext = QLineEdit() - self.searchtextlayout.addWidget(self.searchtext) - self.searchtextbutton = LPushButton("搜索包含文本的条目") - __ = LPushButton("找不到文本?") + __ = LPushButton("!?_找不到文本?_!?") __.clicked.connect( - lambda: gobject.baseobject.openlink(dynamiclink("{main_server}/Resource/game_support")) + lambda: gobject.baseobject.openlink( + dynamiclink("{main_server}/Resource/game_support") + ) ) + self.searchtextlayout.addWidget(__) + self.searchtextlayout.addWidget(self.searchtext) + self.searchtextbutton = LPushButton("搜索") self.searchtextbutton.clicked.connect(self.searchtextfunc) self.searchtextlayout.addWidget(self.searchtextbutton) - self.searchtextlayout.addWidget(__) ################### self.ttCombomodelmodel2 = LStandardItemModel() self.tttable2 = TableViewW() @@ -643,7 +648,7 @@ class hookselect(closeashidewindow): self.vboxlayout.addLayout(self.searchtextlayout2) self.searchtext2 = QLineEdit() self.searchtextlayout2.addWidget(self.searchtext2) - self.searchtextbutton2 = LPushButton("搜索包含文本的条目") + self.searchtextbutton2 = LPushButton("搜索") self.checkfilt_notcontrol = LCheckBox(("过滤控制字符")) self.checkfilt_notascii = LCheckBox(("过滤纯英文")) self.checkfilt_notshiftjis = LCheckBox(("过滤乱码文本")) diff --git a/LunaTranslator/LunaTranslator/gui/showword.py b/LunaTranslator/LunaTranslator/gui/showword.py index 1a63c562..aefda768 100644 --- a/LunaTranslator/LunaTranslator/gui/showword.py +++ b/LunaTranslator/LunaTranslator/gui/showword.py @@ -381,6 +381,7 @@ class AnkiWindow(QWidget): wid.setLayout(layout) soundbutton = QPushButton(qtawesome.icon("fa.music"), "") soundbutton.clicked.connect(self.langdu) + soundbutton2 = QPushButton(qtawesome.icon("fa.music"), "") soundbutton2.clicked.connect(self.langdu2) cropbutton = QPushButton(qtawesome.icon("fa.crop"), "") @@ -432,6 +433,14 @@ class AnkiWindow(QWidget): lb = QLabel("DeckName") lb.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Preferred) + folder_open = QPushButton(qtawesome.icon("fa.folder-open"), "") + folder_open.clicked.connect(functools.partial(self.selecfile, self.audiopath)) + folder_open2 = QPushButton(qtawesome.icon("fa.folder-open"), "") + folder_open2.clicked.connect( + functools.partial(self.selecfile, self.audiopath_sentence) + ) + folder_open3 = QPushButton(qtawesome.icon("fa.folder-open"), "") + folder_open3.clicked.connect(functools.partial(self.selecfile, self.editpath)) layout.addLayout( getboxlayout( [ @@ -492,12 +501,7 @@ class AnkiWindow(QWidget): self.audiopath, recordbtn1, soundbutton, - getIconButton( - functools.partial( - self.selecfile, self.audiopath - ), - icon="fa.gear", - ), + folder_open, ] ), getboxlayout( @@ -506,12 +510,7 @@ class AnkiWindow(QWidget): self.audiopath_sentence, recordbtn2, soundbutton2, - getIconButton( - functools.partial( - self.selecfile, self.audiopath_sentence - ), - icon="fa.gear", - ), + folder_open2, ] ), getboxlayout( @@ -520,12 +519,7 @@ class AnkiWindow(QWidget): self.editpath, cropbutton, grabwindowbtn, - getIconButton( - functools.partial( - self.selecfile, self.editpath - ), - icon="fa.gear", - ), + folder_open3, ] ), self.viewimagelabel, diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index cb7a046e..96f2dc8d 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -1864,11 +1864,39 @@ class listediter(LDialog): self.buttons.btn1clicked.connect(self.click1) self.buttons.btn2clicked.connect(self.clicked2) else: - self.buttons = threebuttons(texts=["添加行", "删除行", "上移", "下移"]) - self.buttons.btn1clicked.connect(self.click1) - self.buttons.btn2clicked.connect(self.clicked2) - self.buttons.btn3clicked.connect(functools.partial(self.moverank, -1)) - self.buttons.btn4clicked.connect(functools.partial(self.moverank, 1)) + if self.ispathsedit and self.ispathsedit.get("dirorfile", False): + self.buttons = threebuttons( + texts=["添加文件", "添加文件夹", "删除行", "上移", "下移"] + ) + self.buttons.btn1clicked.connect( + functools.partial(self._addfile, False) + ) + self.buttons.btn2clicked.connect( + functools.partial(self._addfile, True) + ) + self.buttons.btn3clicked.connect(self.clicked2) + self.buttons.btn4clicked.connect( + functools.partial(self.moverank, -1) + ) + self.buttons.btn5clicked.connect( + functools.partial(self.moverank, 1) + ) + else: + xx = "添加行" + if self.ispathsedit: + if self.ispathsedit.get("isdir", False): + xx = "添加文件夹" + else: + xx = "添加文件" + self.buttons = threebuttons(texts=[xx, "删除行", "上移", "下移"]) + self.buttons.btn1clicked.connect(self.click1) + self.buttons.btn2clicked.connect(self.clicked2) + self.buttons.btn3clicked.connect( + functools.partial(self.moverank, -1) + ) + self.buttons.btn4clicked.connect( + functools.partial(self.moverank, 1) + ) formLayout.addWidget(self.buttons) self.resize(600, self.sizeHint().height()) @@ -1909,6 +1937,16 @@ class listediter(LDialog): def __changed(self, item: QStandardItem, idx): self.internalrealname[item.row()] = self.candidates[idx] + def _addfile(self, isdir): + openfiledirectory( + "", + multi=True, + edit=None, + isdir=isdir, + filter1=self.ispathsedit.get("filter1", "*.*"), + callback=self.__cb, + ) + def click1(self): if self.candidates: self.internalrealname.insert(0, self.candidates[0]) @@ -1993,21 +2031,25 @@ def getsimplepatheditor( reflist=None, name=None, header=None, + dirorfile=False, ): lay = QHBoxLayout() lay.setContentsMargins(0, 0, 0, 0) if multi: e = listediterline( - name, header, reflist, dict(isdir=isdir, multi=False, filter1=filter1) + name, + header, + reflist, + dict(isdir=isdir, multi=False, filter1=filter1, dirorfile=dirorfile), ) lay.addWidget(e) else: e = QLineEdit(text) e.setReadOnly(True) if useiconbutton: - bu = getIconButton(icon="fa.gear") - clear = getIconButton(icon="fa.remove") + bu = getIconButton(icon="fa.folder-open") + clear = getIconButton(icon="fa.window-close-o") else: bu = LPushButton("选择" + ("文件夹" if isdir else "文件")) clear = LPushButton("清除") diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index d1463bc6..d7c2b474 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -579,10 +579,17 @@ def parsetarget(dict_, key): dict_[key] = t +mdict_path_dir = ( + globalconfig.get("cishu", {}).get("mdict", {}).get("args", {}).get("path_dir", None) +) +if mdict_path_dir: + globalconfig["cishu"]["mdict"]["args"]["paths"].append(mdict_path_dir) + globalconfig["cishu"]["mdict"]["args"].pop("path_dir") + + def autoparsedynamicpath(): for dic, routine, target in ( (globalconfig, ("cishu", "mdict", "args"), "paths"), - (globalconfig, ("cishu", "mdict", "args"), "path_dir"), (globalconfig, ("cishu", "edict", "args"), "path"), (globalconfig, ("cishu", "linggesi", "args"), "path"), (globalconfig, ("cishu", "xiaoxueguan", "args"), "path"), diff --git a/LunaTranslator/files/defaultconfig/config.json b/LunaTranslator/files/defaultconfig/config.json index 81cd47de..c8895e35 100644 --- a/LunaTranslator/files/defaultconfig/config.json +++ b/LunaTranslator/files/defaultconfig/config.json @@ -1337,22 +1337,16 @@ "args": { "paths": [], "distance": 0, - "stylehv": 0, - "path_dir": "" + "stylehv": 0 }, "argstype": { "paths": { "type": "file", "name": "路径", - "dir": false, + "dirorfile": true, "multi": true, "filter": "*.mdx" }, - "path_dir": { - "type": "file", - "name": "遍历目录中的全部词典文件", - "dir": true - }, "distance": { "type": "intspin", "name": "模糊匹配_编辑距离", diff --git a/LunaTranslator/files/lang/ar.json b/LunaTranslator/files/lang/ar.json index da3db5c1..e8ad15d0 100644 --- a/LunaTranslator/files/lang/ar.json +++ b/LunaTranslator/files/lang/ar.json @@ -183,7 +183,6 @@ "选择文本,支持按住ctrl进行多项选择(一般选择一条即可)": "اختيار النص ، ودعم السيطرة على الاختيار من متعدد", "均衡负载": "تحميل موازنة", "图像一致性阈值": "صورة عتبة الاتساق", - "搜索包含文本的条目": "البحث عن البنود التي تحتوي على النص", "保存路径": "حفظ المسار", "搜索持续时间(s)": "مدة البحث ( ق )", "使用代理": "استخدام وكيل", @@ -669,7 +668,6 @@ "背景颜色": "لون الخلفية", "工具按钮": "أداة زر", "窗口特效": "نافذة المؤثرات الخاصة", - "遍历目录中的全部词典文件": "اجتياز جميع ملفات القاموس في الدليل", "网络请求": "طلب شبكة", "网页显示": "عرض الصفحة", "显示时间": "عرض الوقت", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "انقر على رسالة الخروج والبدء في تحديث", "增强效果": "تعزيز تأثير", "显示/隐藏翻译": "إظهار / إخفاء الترجمة", - "全局": "العالمية" + "全局": "العالمية", + "添加文件": "إضافة ملف", + "添加文件夹": "إضافة مجلد", + "类型": "نوع ." } \ No newline at end of file diff --git a/LunaTranslator/files/lang/cht.json b/LunaTranslator/files/lang/cht.json index ea680e68..e3f80046 100644 --- a/LunaTranslator/files/lang/cht.json +++ b/LunaTranslator/files/lang/cht.json @@ -130,7 +130,6 @@ "文本": "文字", "插入特殊码": "插入特殊碼", "搜索特殊码": "搜尋特殊碼", - "搜索包含文本的条目": "搜尋包含文字的條目", "过滤控制字符": "過濾控制字元", "过滤路径": "過濾路徑", "过滤纯英文": "過濾純英文", @@ -669,7 +668,6 @@ "背景颜色": "背景顏色", "工具按钮": "工具按鈕", "窗口特效": "視窗特效", - "遍历目录中的全部词典文件": "走訪目錄中的全部詞典檔案", "网络请求": "網路請求", "网页显示": "網頁顯示", "显示时间": "顯示時間", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "點擊訊息後退出並開始更新", "增强效果": "增強效果", "显示/隐藏翻译": "顯示 / 隱藏翻譯", - "全局": "全域" + "全局": "全域", + "添加文件": "添加檔案", + "添加文件夹": "添加資料夾", + "类型": "類型" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/cs.json b/LunaTranslator/files/lang/cs.json index 279200aa..ca1ed62e 100644 --- a/LunaTranslator/files/lang/cs.json +++ b/LunaTranslator/files/lang/cs.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "Univerzální rozpoznávání textu (standardní včetně polohové verze)", "琴葉茜": "Qin Yeqian", "月読アイ": "Měsíc", - "搜索包含文本的条目": "Hledat položky obsahující text", "北欧": "Severní Evropa", "金山快译": "Jinshan Rychlý překlad", "音街ウナ": "Yinjie Una.", @@ -678,7 +677,6 @@ "背景颜色": "Barva pozadí", "工具按钮": "Tlačítko nástroje", "窗口特效": "Efekty oken", - "遍历目录中的全部词典文件": "Procházet všechny soubory slovníku v adresáři", "网络请求": "Žádost o síť", "网页显示": "Zobrazení webové stránky", "显示时间": "Čas zobrazení", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Klikněte na zprávu pro ukončení a spuštění aktualizace", "增强效果": "Zvýšený efekt", "显示/隐藏翻译": "Zobrazit/skrýt překlad", - "全局": "celková situace" + "全局": "celková situace", + "添加文件": "Přidat soubor", + "添加文件夹": "přidat složky", + "类型": "typ" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/de.json b/LunaTranslator/files/lang/de.json index c7ef9b9a..a30b9f24 100644 --- a/LunaTranslator/files/lang/de.json +++ b/LunaTranslator/files/lang/de.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "Universelle Texterkennung (Standard inkl. Positionsversion)", "琴葉茜": "Qin Yeqian", "月読アイ": "Monat", - "搜索包含文本的条目": "Suche nach Einträgen mit Text", "北欧": "Nordeuropa", "金山快译": "Jinshan Schnellübersetzung", "音街ウナ": "Yinjie Una", @@ -678,7 +677,6 @@ "背景颜色": "Hintergrundfarbe", "工具按钮": "Werkzeugtaste", "窗口特效": "Fenstereffekte", - "遍历目录中的全部词典文件": "Durchsuchen Sie alle Wörterbuchdateien im Verzeichnis", "网络请求": "Netzwerkanfrage", "网页显示": "Anzeige der Webseite", "显示时间": "Anzeigezeit", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Klicken Sie auf die Nachricht, um zu beenden und mit der Aktualisierung zu beginnen", "增强效果": "Verstärkte Wirkung", "显示/隐藏翻译": "Übersetzung ein-/ausblenden", - "全局": "Gesamtlage" + "全局": "Gesamtlage", + "添加文件": "Datei hinzufügen", + "添加文件夹": "Ordner hinzufügen", + "类型": "Typ" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/en.json b/LunaTranslator/files/lang/en.json index f6535a26..a2050bfb 100644 --- a/LunaTranslator/files/lang/en.json +++ b/LunaTranslator/files/lang/en.json @@ -5,7 +5,6 @@ "查词": "Look Up Word", "文本": "Text", "插入特殊码": "Insert Hook Code", - "搜索包含文本的条目": "Search Entries Containing Text", "选择文本,支持按住ctrl进行多项选择(一般选择一条即可)": "Select text. Press and hold CTRL to make multiple selections (generally one entry is enough)", "不绘制光标": "Don't Draw Cursor", "退出": "Exit", @@ -668,7 +667,6 @@ "背景颜色": "Background Color", "工具按钮": "Tool Button", "窗口特效": "Window Effect", - "遍历目录中的全部词典文件": "Traverse All Dictionary Files in Directory", "网络请求": "Network Request", "网页显示": "Webpage Display", "显示时间": "Display Time", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Click on the message to exit and start updating", "增强效果": "Enhanced effect", "显示/隐藏翻译": "Show/Hide Translation", - "全局": "overall situation" + "全局": "overall situation", + "添加文件": "Add file", + "添加文件夹": "add folders", + "类型": "type" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/es.json b/LunaTranslator/files/lang/es.json index 6bdeab37..29924fd5 100644 --- a/LunaTranslator/files/lang/es.json +++ b/LunaTranslator/files/lang/es.json @@ -130,7 +130,6 @@ "文本": "Texto", "插入特殊码": "Insertar código especial", "搜索特殊码": "Buscar código especial", - "搜索包含文本的条目": "Buscar entradas que contengan texto", "过滤控制字符": "Filtrar caracteres de control", "过滤路径": "Ruta de filtrado", "过滤纯英文": "Filtrar inglés puro", @@ -669,7 +668,6 @@ "背景颜色": "Color de fondo", "工具按钮": "Botones de herramientas", "窗口特效": "Efectos especiales de la ventana", - "遍历目录中的全部词典文件": "Recorrer todos los archivos del diccionario en el catálogo", "网络请求": "Solicitud de red", "网页显示": "Pantalla de la página web", "显示时间": "Tiempo de visualización", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Haga clic en el mensaje para salir y comenzar la actualización", "增强效果": "Mejorar el efecto", "显示/隐藏翻译": "Mostrar / ocultar traducción", - "全局": "Global" + "全局": "Global", + "添加文件": "Añadir archivo", + "添加文件夹": "Añadir carpetas", + "类型": "Tipo" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/fr.json b/LunaTranslator/files/lang/fr.json index 8828e8d6..136a28d7 100644 --- a/LunaTranslator/files/lang/fr.json +++ b/LunaTranslator/files/lang/fr.json @@ -130,7 +130,6 @@ "文本": "Texte", "插入特殊码": "Insérer un code spécial", "搜索特殊码": "Rechercher des codes spéciaux", - "搜索包含文本的条目": "Recherche d'entrées contenant du texte", "过滤控制字符": "Filtrer les caractères de contrôle", "过滤路径": "Chemin du filtre", "过滤纯英文": "Filtrer en anglais seulement", @@ -669,7 +668,6 @@ "背景颜色": "Couleur de fond", "工具按钮": "Le bouton outils", "窗口特效": "Effets spéciaux de fenêtre", - "遍历目录中的全部词典文件": "Parcourir tous les fichiers de dictionnaire dans le Répertoire", "网络请求": "Demande de réseau", "网页显示": "Affichage de la page Web", "显示时间": "Afficher l'heure", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Quitter et commencer la mise à jour après avoir cliqué sur le message", "增强效果": "Effet amélioré", "显示/隐藏翻译": "Afficher / masquer la traduction", - "全局": "Globale" + "全局": "Globale", + "添加文件": "Ajouter un fichier", + "添加文件夹": "Ajouter un dossier", + "类型": "Type" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/it.json b/LunaTranslator/files/lang/it.json index 90c9f4f5..42e4419b 100644 --- a/LunaTranslator/files/lang/it.json +++ b/LunaTranslator/files/lang/it.json @@ -124,7 +124,6 @@ "文本": "testo", "插入特殊码": "Inserisci codice speciale", "搜索特殊码": "Cerca codici speciali", - "搜索包含文本的条目": "Cerca voci contenenti testo", "过滤控制字符": "Carattere di controllo filtro", "过滤路径": "Percorso filtro", "过滤纯英文": "Filtro inglese puro", @@ -669,7 +668,6 @@ "背景颜色": "colore di sfondo", "工具按钮": "Pulsanti strumenti", "窗口特效": "Effetti finestra", - "遍历目录中的全部词典文件": "Attraversa tutti i file del dizionario nella directory", "网络请求": "Richiesta di rete", "网页显示": "Visualizzazione pagina web", "显示时间": "Tempo di visualizzazione", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Clicca sul messaggio per uscire e iniziare l'aggiornamento", "增强效果": "Effetto potenziato", "显示/隐藏翻译": "Mostra/Nascondi traduzione", - "全局": "situazione generale" + "全局": "situazione generale", + "添加文件": "Aggiungi file", + "添加文件夹": "aggiungi cartelle", + "类型": "tipo" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ja.json b/LunaTranslator/files/lang/ja.json index 142dfc91..1110cc1f 100644 --- a/LunaTranslator/files/lang/ja.json +++ b/LunaTranslator/files/lang/ja.json @@ -130,7 +130,6 @@ "文本": "テキスト", "插入特殊码": "特殊コードの挿入", "搜索特殊码": "特殊コードの検索", - "搜索包含文本的条目": "テキストを含むエントリの検索", "过滤控制字符": "フィルタ制御文字", "过滤路径": "フィルタパス", "过滤纯英文": "純粋な英語のフィルタリング", @@ -669,7 +668,6 @@ "背景颜色": "背景色", "工具按钮": "ツールボタン", "窗口特效": "ウィンドウ効果", - "遍历目录中的全部词典文件": "ディレクトリ内のすべての辞書ファイルを巡回", "网络请求": "ネットワーク要求", "网页显示": "Webページ表示", "显示时间": "表示時間", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "メッセージをクリックして終了し、更新を開始", "增强效果": "きょうかこうか", "显示/隐藏翻译": "翻訳の表示/非表示", - "全局": "グローバル#グローバル#" + "全局": "グローバル#グローバル#", + "添加文件": "ファイルを追加", + "添加文件夹": "フォルダを追加", + "类型": "を選択してオプションを設定します。" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ko.json b/LunaTranslator/files/lang/ko.json index d0221f80..24ed9638 100644 --- a/LunaTranslator/files/lang/ko.json +++ b/LunaTranslator/files/lang/ko.json @@ -130,7 +130,6 @@ "文本": "텍스트", "插入特殊码": "특수 코드 삽입", "搜索特殊码": "특수 코드 검색", - "搜索包含文本的条目": "텍스트가 포함된 항목 검색", "过滤控制字符": "제어 문자 필터링", "过滤路径": "경로 필터링", "过滤纯英文": "순수 영어 필터링", @@ -669,7 +668,6 @@ "背景颜色": "배경색", "工具按钮": "도구 단추", "窗口特效": "창 효과", - "遍历目录中的全部词典文件": "디렉토리의 모든 사전 파일 반복", "网络请求": "네트워크 요청", "网页显示": "웹 페이지 표시", "显示时间": "표시 시간", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "메시지 클릭 후 종료 및 업데이트 시작", "增强效果": "향상된 효과", "显示/隐藏翻译": "번역 표시 / 숨기기", - "全局": "전역" + "全局": "전역", + "添加文件": "파일 추가", + "添加文件夹": "폴더 추가", + "类型": "유형" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/nl.json b/LunaTranslator/files/lang/nl.json index b4d44ee5..12f93aa5 100644 --- a/LunaTranslator/files/lang/nl.json +++ b/LunaTranslator/files/lang/nl.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "Universele tekstherkenning (standaard inclusief positionele versie)", "琴葉茜": "Qin Yeqian.", "月読アイ": "Maand 読アIN", - "搜索包含文本的条目": "Zoeken naar items met tekst", "北欧": "Noord-Europa", "金山快译": "Jinshan Snelle vertaling", "音街ウナ": "Yinjie Una", @@ -678,7 +677,6 @@ "背景颜色": "achtergrondkleur", "工具按钮": "Gereedschapsknop", "窗口特效": "Venstereffecten", - "遍历目录中的全部词典文件": "Doorzoek alle woordenboekbestanden in de map", "网络请求": "Netwerkverzoek", "网页显示": "Weergave van webpagina's", "显示时间": "Weergavetijd", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Klik op het bericht om te sluiten en te beginnen met updaten", "增强效果": "Verbeterd effect", "显示/隐藏翻译": "Vertaling tonen/verbergen", - "全局": "algemene situatie" + "全局": "algemene situatie", + "添加文件": "Bestand toevoegen", + "添加文件夹": "mappen toevoegen", + "类型": "type" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/pl.json b/LunaTranslator/files/lang/pl.json index 1adf7fd9..e4e42c3d 100644 --- a/LunaTranslator/files/lang/pl.json +++ b/LunaTranslator/files/lang/pl.json @@ -130,7 +130,6 @@ "文本": "tekst", "插入特殊码": "Wstaw kod specjalny", "搜索特殊码": "Szukaj kodów specjalnych", - "搜索包含文本的条目": "Szukaj wpisów zawierających tekst", "过滤控制字符": "Znak kontrolny filtra", "过滤路径": "Ścieżka filtru", "过滤纯英文": "Filtruj czysty angielski", @@ -669,7 +668,6 @@ "背景颜色": "Kolor tła", "工具按钮": "Przyciski narzędziowe", "窗口特效": "Efekty okien", - "遍历目录中的全部词典文件": "Przejrzyj wszystkie pliki słownika w katalogu", "网络请求": "Żądanie sieci", "网页显示": "Wyświetlanie strony internetowej", "显示时间": "Czas wyświetlania", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Kliknij na wiadomość, aby wyjść i rozpocząć aktualizację", "增强效果": "Wzmocniony efekt", "显示/隐藏翻译": "Pokaż/ukryj tłumaczenie", - "全局": "ogólna sytuacja" + "全局": "ogólna sytuacja", + "添加文件": "Dodaj plik", + "添加文件夹": "dodaj foldery", + "类型": "typ" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/pt.json b/LunaTranslator/files/lang/pt.json index 7f3e0c1f..e3bc26d8 100644 --- a/LunaTranslator/files/lang/pt.json +++ b/LunaTranslator/files/lang/pt.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "Reconhecimento universal de texto (padrão incluindo versão posicional)", "琴葉茜": "Qin Yeqian", "月読アイ": "Mês", - "搜索包含文本的条目": "Procurar por itens que contenham texto", "北欧": "Norte da Europa", "金山快译": "Tradução Rápida Jinshan", "音街ウナ": "Yinjie Una", @@ -678,7 +677,6 @@ "背景颜色": "cor de fundo", "工具按钮": "Botão da ferramenta", "窗口特效": "Efeitos de janela", - "遍历目录中的全部词典文件": "Percorrer todos os arquivos de dicionário no diretório", "网络请求": "Pedido de rede", "网页显示": "Apresentação da página Web", "显示时间": "Tempo de exibição", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Clique na mensagem para sair e iniciar a atualização", "增强效果": "Efeito melhorado", "显示/隐藏翻译": "Mostrar/ Esconder a Tradução", - "全局": "situação global" + "全局": "situação global", + "添加文件": "Adicionar um ficheiro", + "添加文件夹": "adicionar pastas", + "类型": "tipo" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/ru.json b/LunaTranslator/files/lang/ru.json index a6e5bf33..6ef39e90 100644 --- a/LunaTranslator/files/lang/ru.json +++ b/LunaTranslator/files/lang/ru.json @@ -130,7 +130,6 @@ "文本": "Текст", "插入特殊码": "Вставить Специальный код", "搜索特殊码": "Специальный код поиска", - "搜索包含文本的条目": "Поиск записей, содержащих текст", "过滤控制字符": "Фильтровать управляющие символы", "过滤路径": "Путь фильтрации", "过滤纯英文": "Фильтр английского языка", @@ -669,7 +668,6 @@ "背景颜色": "Цвет фона", "工具按钮": "Кнопки инструментов", "窗口特效": "Специальные эффекты окон", - "遍历目录中的全部词典文件": "Все словарные файлы в каталоге", "网络请求": "Сетевой запрос", "网页显示": "Показать страницу", "显示时间": "Показать время", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Выйти после нажатия на сообщение и начать обновление", "增强效果": "Усиление эффекта", "显示/隐藏翻译": "Показать / скрыть перевод", - "全局": "Общее положение" + "全局": "Общее положение", + "添加文件": "Добавить файл", + "添加文件夹": "Добавить папку", + "类型": "Тип" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/sv.json b/LunaTranslator/files/lang/sv.json index b75f0254..15842e93 100644 --- a/LunaTranslator/files/lang/sv.json +++ b/LunaTranslator/files/lang/sv.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "Universell textigenkänning (standard inklusive positionsversion)", "琴葉茜": "Qin Yeqian", "月読アイ": "Månad 読アアイ", - "搜索包含文本的条目": "Sök efter poster som innehåller text", "北欧": "Nordeuropa", "金山快译": "Jinshan snabböversättning", "音街ウナ": "Yinjie Una", @@ -678,7 +677,6 @@ "背景颜色": "bakgrundsfärg", "工具按钮": "Verktygsknapp", "窗口特效": "Fönstereffekter", - "遍历目录中的全部词典文件": "Bläddra igenom alla ordlista filer i katalogen", "网络请求": "Nätverksbegäran", "网页显示": "Webbsidvisning", "显示时间": "Visningstid", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Klicka på meddelandet för att avsluta och börja uppdatera", "增强效果": "Förbättrad effekt", "显示/隐藏翻译": "Visa/dölj översättning", - "全局": "övergripande situation" + "全局": "övergripande situation", + "添加文件": "Lägg till fil", + "添加文件夹": "lägg till kataloger", + "类型": "typ" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/th.json b/LunaTranslator/files/lang/th.json index 0d3bcfd1..2124a590 100644 --- a/LunaTranslator/files/lang/th.json +++ b/LunaTranslator/files/lang/th.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "การจดจำคำทั่วไป (มีรุ่นตำแหน่งมาตรฐาน)", "琴葉茜": "เชน เยซี่", "月読アイ": "เดือน読日本語", - "搜索包含文本的条目": "ค้นหารายการที่มีข้อความ", "北欧": "นอร์ดิก", "金山快译": "Golden Mountain แปลด่วน", "音街ウナ": "ถนนอิม", @@ -669,7 +668,6 @@ "背景颜色": "สีพื้นหลัง", "工具按钮": "ปุ่มเครื่องมือ", "窗口特效": "เทคนิคพิเศษของหน้าต่าง", - "遍历目录中的全部词典文件": "ผ่านไฟล์พจนานุกรมทั้งหมดในไดเรกทอรี", "网络请求": "คำขอเครือข่าย", "网页显示": "แสดงหน้าเว็บ", "显示时间": "แสดงเวลา", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "ออกจากข้อความและเริ่มต้นการปรับปรุง", "增强效果": "เพิ่มประสิทธิภาพ", "显示/隐藏翻译": "แสดง/ซ่อนการแปล", - "全局": "ภาพรวม" + "全局": "ภาพรวม", + "添加文件": "เพิ่มไฟล์", + "添加文件夹": "เพิ่มโฟลเดอร์", + "类型": "ประเภท" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/tr.json b/LunaTranslator/files/lang/tr.json index c42cf707..b83018bc 100644 --- a/LunaTranslator/files/lang/tr.json +++ b/LunaTranslator/files/lang/tr.json @@ -130,7 +130,6 @@ "文本": "metin", "插入特殊码": "Özel kodu ekle", "搜索特殊码": "Özel kodu arayın", - "搜索包含文本的条目": "Metin içeren giriş arayın", "过滤控制字符": "Süzgüç kontrol karakterleri", "过滤路径": "Süzgüç yolu", "过滤纯英文": "Tüm İngilizce'i sil", @@ -669,7 +668,6 @@ "背景颜色": "Arkaplan rengi", "工具按钮": "Araç düğmeleri", "窗口特效": "Pencere etkileri", - "遍历目录中的全部词典文件": "Dizindeki bütün sözlük dosyalarını yolla", "网络请求": "Network request", "网页显示": "Web sayfası gösterisi", "显示时间": "Display time", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Çıkmak ve güncellenmeye başlamak için mesajı tıklayın", "增强效果": "Yükselmiş etki", "显示/隐藏翻译": "Çeviri Göster/Gizle", - "全局": "bütün durum" + "全局": "bütün durum", + "添加文件": "Dosya ekle", + "添加文件夹": "Dosyaları ekle", + "类型": "tür" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/uk.json b/LunaTranslator/files/lang/uk.json index 1170b50e..82f6d1c0 100644 --- a/LunaTranslator/files/lang/uk.json +++ b/LunaTranslator/files/lang/uk.json @@ -124,7 +124,6 @@ "文本": "текст", "插入特殊码": "Вставити спеціальний код", "搜索特殊码": "Search for special codes", - "搜索包含文本的条目": "Пошук записів, що містять текст", "过滤控制字符": "Символ керування фільтром", "过滤路径": "Шлях до фільтрування", "过滤纯英文": "Фільтрувати чисту англійську", @@ -669,7 +668,6 @@ "背景颜色": "колір тла", "工具按钮": "Кнопки інструментів", "窗口特效": "Ефекти вікна", - "遍历目录中的全部词典文件": "Пересунути всі файли словника у каталозі", "网络请求": "Запит на мережу", "网页显示": "Показ веб- сторінок", "显示时间": "Час показу", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Натисніть повідомлення для виходу і запуску оновлення", "增强效果": "Покращений ефект", "显示/隐藏翻译": "Показувати/сховати переклад", - "全局": "загальна ситуація" + "全局": "загальна ситуація", + "添加文件": "Додати файл", + "添加文件夹": "додати теки", + "类型": "тип" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/vi.json b/LunaTranslator/files/lang/vi.json index 2cd2a218..21377a49 100644 --- a/LunaTranslator/files/lang/vi.json +++ b/LunaTranslator/files/lang/vi.json @@ -130,7 +130,6 @@ "文本": "Văn bản", "插入特殊码": "Chèn mã đặc biệt", "搜索特殊码": "Tìm kiếm mã đặc biệt", - "搜索包含文本的条目": "Tìm kiếm các mục có chứa văn bản", "过滤控制字符": "Bộ lọc ký tự điều khiển", "过滤路径": "Đường dẫn lọc", "过滤纯英文": "Lọc tiếng Anh thuần túy", @@ -669,7 +668,6 @@ "背景颜色": "Màu nền", "工具按钮": "Nút công cụ", "窗口特效": "Hiệu ứng cửa sổ", - "遍历目录中的全部词典文件": "Đi qua tất cả các tập tin từ điển trong thư mục", "网络请求": "Yêu cầu mạng", "网页显示": "Hiển thị trang web", "显示时间": "Thời gian hiển thị", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "Thoát sau khi nhấp vào tin nhắn và bắt đầu cập nhật", "增强效果": "Hiệu ứng nâng cao", "显示/隐藏翻译": "Hiện/ẩn bản dịch", - "全局": "Toàn cục" + "全局": "Toàn cục", + "添加文件": "Thêm tập tin", + "添加文件夹": "Thêm thư mục", + "类型": "Loại" } \ No newline at end of file diff --git a/LunaTranslator/files/lang/zh.json b/LunaTranslator/files/lang/zh.json index d731d074..a3ae1338 100644 --- a/LunaTranslator/files/lang/zh.json +++ b/LunaTranslator/files/lang/zh.json @@ -346,7 +346,6 @@ "通用文字识别(标准含位置版)": "", "琴葉茜": "", "月読アイ": "", - "搜索包含文本的条目": "", "北欧": "", "金山快译": "", "音街ウナ": "", @@ -679,7 +678,6 @@ "背景颜色": "", "工具按钮": "", "窗口特效": "", - "遍历目录中的全部词典文件": "", "网络请求": "", "网页显示": "", "显示时间": "", @@ -853,5 +851,8 @@ "点击消息后退出并开始更新": "", "增强效果": "", "显示/隐藏翻译": "", - "全局": "" + "全局": "", + "添加文件": "", + "添加文件夹": "", + "类型": "" } \ No newline at end of file