From 44a0a12cdf6c966a0541841b070d40c31c09a287 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: Fri, 3 May 2024 20:49:49 +0800 Subject: [PATCH] not dir --- .../LunaTranslator/LunaTranslator_main.py | 24 +------------------ .../LunaTranslator/gui/dialog_memory.py | 2 ++ .../LunaTranslator/gui/pretransfile.py | 1 + .../LunaTranslator/gui/selecthook.py | 1 + .../LunaTranslator/gui/settingpage1.py | 1 + .../LunaTranslator/gui/settingpage7.py | 3 ++- .../LunaTranslator/gui/translatorUI.py | 1 + .../LunaTranslator/myutils/config.py | 8 +------ .../LunaTranslator/myutils/githubupdate.py | 1 + LunaTranslator/LunaTranslator/myutils/hwnd.py | 1 + LunaTranslator/LunaTranslator/myutils/vndb.py | 12 ++++++---- .../scalemethod/magpie_builtin.py | 1 + .../LunaTranslator/textsource/ocrtext.py | 4 ++-- .../textsource/textsourcebase.py | 2 +- .../translator/basetranslator.py | 3 ++- .../LunaTranslator/tts/NeoSpeech.py | 1 + LunaTranslator/LunaTranslator/tts/edgetts.py | 3 ++- .../LunaTranslator/tts/huoshantts.py | 4 ++-- .../LunaTranslator/tts/vitsSimpleAPI.py | 3 ++- .../LunaTranslator/tts/voiceroid2.py | 1 + .../LunaTranslator/tts/voiceroidplus.py | 1 + LunaTranslator/LunaTranslator/tts/voicevox.py | 1 + .../LunaTranslator/tts/windowstts.py | 2 +- .../LunaTranslator/tts/youdaotts.py | 3 ++- 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 - 39 files changed, 38 insertions(+), 61 deletions(-) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator_main.py b/LunaTranslator/LunaTranslator/LunaTranslator_main.py index d7823e41..51676dc2 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator_main.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator_main.py @@ -8,24 +8,8 @@ if __name__ == "__main__": windows.loadlibrary( "./LunaTranslator/runtime/PyQt5/Qt5/bin/Qt5Core.dll" ) # win7 no vcredist2015 - for p in ( - "./userconfig/memory", - "./userconfig/memory", - "./userconfig/posts", - "./translation_record", - "./translation_record/cache", - "./cache", - "./cache/ocr", - "./cache/update", - "./cache/screenshot", - "./cache/tts", - "./cache/icon", - "./cache/backup", - ): - os.makedirs(p, exist_ok=True) - - from myutils.config import _TR, static_data, testpriv, globalconfig + from myutils.config import _TR, static_data, globalconfig sys.path.append("./userconfig") sys.path.insert( @@ -81,12 +65,6 @@ if __name__ == "__main__": ) os._exit(0) - try: - testpriv() - except: - getQMessageBox(None, "错误", "当前路径读写权限不足,请使用管理员权限运行!") - os._exit(0) - gobject.baseobject = MAINUI() gobject.baseobject.checklang() gobject.baseobject.aa() diff --git a/LunaTranslator/LunaTranslator/gui/dialog_memory.py b/LunaTranslator/LunaTranslator/gui/dialog_memory.py index 25a17baa..5f3325b8 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_memory.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_memory.py @@ -7,6 +7,7 @@ from myutils.config import _TR, globalconfig from gui.usefulwidget import saveposwindow from myutils.wrapper import Singleton_close from winsharedutils import showintab +import os @Singleton_close @@ -36,6 +37,7 @@ class dialog_memory(saveposwindow): self.gamemd5 = gamemd5 formLayout = QVBoxLayout() # self.showtext = QTextEdit() + os.makedirs("./userconfig/memory", exist_ok=True) self.rwpath = "./userconfig/memory/{}.html".format(gamemd5) try: with open(self.rwpath, "r", encoding="utf8") as ff: diff --git a/LunaTranslator/LunaTranslator/gui/pretransfile.py b/LunaTranslator/LunaTranslator/gui/pretransfile.py index 0e66ba76..76b1f34b 100644 --- a/LunaTranslator/LunaTranslator/gui/pretransfile.py +++ b/LunaTranslator/LunaTranslator/gui/pretransfile.py @@ -120,6 +120,7 @@ def sqlite2json2(self, sqlitefile, targetjson=None, existsmerge=False): def sqlite2json(self): + os.makedirs("./translation_record", exist_ok=True) f = QFileDialog.getOpenFileName(directory="./translation_record", filter="*.sqlite") if f[0] == "": return diff --git a/LunaTranslator/LunaTranslator/gui/selecthook.py b/LunaTranslator/LunaTranslator/gui/selecthook.py index b51d5ebc..1cba6cc1 100644 --- a/LunaTranslator/LunaTranslator/gui/selecthook.py +++ b/LunaTranslator/LunaTranslator/gui/selecthook.py @@ -104,6 +104,7 @@ class QButtonGroup_switch_widegt(QWidget): def listprocessm(): + os.makedirs("./cache", exist_ok=True) cachefname = os.path.abspath("./cache/{}.txt".format(time.time())) arch = "64" if gobject.baseobject.textsource.is64bit else "32" exe = os.path.abspath("./files/plugins/shareddllproxy{}.exe".format(arch)) diff --git a/LunaTranslator/LunaTranslator/gui/settingpage1.py b/LunaTranslator/LunaTranslator/gui/settingpage1.py index ad29e9b7..ae8652bd 100644 --- a/LunaTranslator/LunaTranslator/gui/settingpage1.py +++ b/LunaTranslator/LunaTranslator/gui/settingpage1.py @@ -190,6 +190,7 @@ def exportchspatch(self): doexportchspatch(exe, realgame) md5 = getfilemd5(exe) name = os.path.basename(exe).replace("." + os.path.basename(exe).split(".")[-1], "") + os.makedirs("./translation_record", exist_ok=True) sqlfname_all = "./translation_record/" + name + "_" + md5 + ".sqlite" if os.path.exists(sqlfname_all) == False: f = QFileDialog.getOpenFileName( diff --git a/LunaTranslator/LunaTranslator/gui/settingpage7.py b/LunaTranslator/LunaTranslator/gui/settingpage7.py index 40440a5a..fedc2579 100644 --- a/LunaTranslator/LunaTranslator/gui/settingpage7.py +++ b/LunaTranslator/LunaTranslator/gui/settingpage7.py @@ -30,7 +30,7 @@ from myutils.utils import ( loadpostsettingwindowmethod, ) from myutils.config import savehook_new_data -import copy +import copy, os from myutils.post import POSTSOLVE @@ -39,6 +39,7 @@ def savegameprocesstext(): try: with open("./userconfig/mypost.py", "r", encoding="utf8") as ff: _mypost = ff.read() + os.makedirs("./userconfig/posts", exist_ok=True) with open( "./userconfig/posts/{}.py".format(gobject.baseobject.textsource.uuname), "w", diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index d716914d..a2f98ee7 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -387,6 +387,7 @@ class QUnFrameWindow(resizableframeless): def ocroncefunction(rect): img = imageCut(0, rect[0][0], rect[0][1], rect[1][0], rect[1][1]) fname = "./cache/ocr/once.png" + os.makedirs("./cache/ocr", exist_ok=True) img.save(fname) text = ocr_run(fname) gobject.baseobject.textgetmethod(text, False) diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index 9eba4781..736c9a78 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -232,13 +232,6 @@ def _TRL(kk): return x -def testpriv(): - fname = f"./userconfig/{os.getpid()}" - with open(fname, "w") as ff: - ff.write("") - os.remove(fname) - - def saveallconfig(): def safesave(fname, js): # 有时保存时意外退出,会导致config文件被清空 @@ -248,6 +241,7 @@ def saveallconfig(): os.remove(fname) os.rename(fname + ".tmp", fname) + os.makedirs("./userconfig", exist_ok=True) safesave("./userconfig/config.json", globalconfig) safesave("./userconfig/magpie_config.json", magpie_config) safesave("./userconfig/postprocessconfig.json", postprocessconfig) diff --git a/LunaTranslator/LunaTranslator/myutils/githubupdate.py b/LunaTranslator/LunaTranslator/myutils/githubupdate.py index 5e59ff26..ec989dfe 100644 --- a/LunaTranslator/LunaTranslator/myutils/githubupdate.py +++ b/LunaTranslator/LunaTranslator/myutils/githubupdate.py @@ -83,6 +83,7 @@ def updatemethod(_version, progresscallback): savep = "./cache/update/LunaTranslator{}.zip".format(bit) def endcallback(): + os.makedirs("./cache/update", exist_ok=True) if os.path.exists("./cache/update/LunaTranslator"): shutil.rmtree("./cache/update/LunaTranslator") zipf = zipfile.ZipFile("./cache/update/LunaTranslator{}.zip".format(bit)) diff --git a/LunaTranslator/LunaTranslator/myutils/hwnd.py b/LunaTranslator/LunaTranslator/myutils/hwnd.py index 691a0ec9..bca61ff7 100644 --- a/LunaTranslator/LunaTranslator/myutils/hwnd.py +++ b/LunaTranslator/LunaTranslator/myutils/hwnd.py @@ -167,6 +167,7 @@ def getExeIcon(name, icon=True, cache=False): name = exepath data = winsharedutils.extracticon2data(name) if cache: + os.makedirs("./cache/icon", exist_ok=True) fn = "./cache/icon/{}.bmp".format(hashlib.md5(name.encode("utf8")).hexdigest()) if data: pixmap = QPixmap() diff --git a/LunaTranslator/LunaTranslator/myutils/vndb.py b/LunaTranslator/LunaTranslator/myutils/vndb.py index 81316e4b..f52b7381 100644 --- a/LunaTranslator/LunaTranslator/myutils/vndb.py +++ b/LunaTranslator/LunaTranslator/myutils/vndb.py @@ -11,6 +11,7 @@ def b64string(a): def vndbdownloadimg(url, wait=True): + os.makedirs("./cache/vndb", exist_ok=True) savepath = "./cache/vndb/" + b64string(url) + ".jpg" if os.path.exists(savepath): return savepath @@ -59,6 +60,7 @@ def vndbdowloadinfo(vid): "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.42", } url = "https://vndb.org/" + vid + os.makedirs("./cache/vndb", exist_ok=True) savepath = "./cache/vndb/" + b64string(url) + ".html" # print(url,savepath) if not os.path.exists(savepath): @@ -197,12 +199,13 @@ def safedownload(): "https://dl.vndb.org/dump/vndb-tags-latest.json.gz", proxies=getproxy(), ) - with open("./cache/vndb-tags-latest.json.gz", "wb") as ff: + os.makedirs("./cache/vndb", exist_ok=True) + with open("./cache/vndb/vndb-tags-latest.json.gz", "wb") as ff: ff.write(resp.content) decompress_gzip_file( - "./cache/vndb-tags-latest.json.gz", "./cache/vndb-tags-latest.json" + "./cache/vndb/vndb-tags-latest.json.gz", "./cache/vndb/vndb-tags-latest.json" ) - with open("./cache/vndb-tags-latest.json", "r", encoding="utf8") as ff: + with open("./cache/vndb/vndb-tags-latest.json", "r", encoding="utf8") as ff: js = json.load(ff) newjs = {} for item in js: @@ -250,8 +253,7 @@ def getvntagsbyid(vid): def searchforidimage(titleorid): print(titleorid) - if os.path.exists("./cache/vndb") == False: - os.mkdir("./cache/vndb") + os.makedirs("./cache/vndb", exist_ok=True) if isinstance(titleorid, str): vid = getvidbytitle(titleorid) if not vid: diff --git a/LunaTranslator/LunaTranslator/scalemethod/magpie_builtin.py b/LunaTranslator/LunaTranslator/scalemethod/magpie_builtin.py index 0867bd5e..fd5e6a66 100644 --- a/LunaTranslator/LunaTranslator/scalemethod/magpie_builtin.py +++ b/LunaTranslator/LunaTranslator/scalemethod/magpie_builtin.py @@ -25,6 +25,7 @@ class Method(scalebase): def init(self): self.statuslistener() + os.makedirs("./cache", exist_ok=True) self.jspath = os.path.abspath("./cache/magpie.config.json") self.engine = subproc_w( './files/plugins/Magpie/Magpie.Core.exe "{}"'.format(self.jspath), diff --git a/LunaTranslator/LunaTranslator/textsource/ocrtext.py b/LunaTranslator/LunaTranslator/textsource/ocrtext.py index b278970f..6686a1bf 100644 --- a/LunaTranslator/LunaTranslator/textsource/ocrtext.py +++ b/LunaTranslator/LunaTranslator/textsource/ocrtext.py @@ -3,7 +3,7 @@ from myutils.config import globalconfig import winsharedutils from gui.rangeselect import rangeadjust from myutils.ocrutil import imageCut, ocr_run, ocr_end -import time, gobject +import time, gobject, os from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QImage from textsource.textsourcebase import basetext @@ -164,7 +164,7 @@ class ocrtext(basetext): return "\n".join(__text) def ocrtest(self, img): - + os.makedirs("./cache/ocr", exist_ok=True) fname = "./cache/ocr/{}.png".format(self.timestamp) img.save(fname) # print(fname) diff --git a/LunaTranslator/LunaTranslator/textsource/textsourcebase.py b/LunaTranslator/LunaTranslator/textsource/textsourcebase.py index 344e8bba..5b442993 100644 --- a/LunaTranslator/LunaTranslator/textsource/textsourcebase.py +++ b/LunaTranslator/LunaTranslator/textsource/textsourcebase.py @@ -16,7 +16,7 @@ class basetext: self.pids = [] self.md5 = md5 self.basename = basename - + os.makedirs("./translation_record", exist_ok=True) sqlfname_all_old = ( "./translation_record/" + md5 + "_" + basename + ".pretrans_common.sqlite" ) diff --git a/LunaTranslator/LunaTranslator/translator/basetranslator.py b/LunaTranslator/LunaTranslator/translator/basetranslator.py index 32535267..705b02e4 100644 --- a/LunaTranslator/LunaTranslator/translator/basetranslator.py +++ b/LunaTranslator/LunaTranslator/translator/basetranslator.py @@ -5,7 +5,7 @@ from myutils.config import globalconfig, translatorsetting, static_data from threading import Thread import time, types import zhconv, gobject -import sqlite3 +import sqlite3, os from myutils.commonbase import commonbase import functools from myutils.utils import stringfyerror, autosql, PriorityQueue @@ -109,6 +109,7 @@ class basetrans(commonbase): if self.transtype != "pre": try: + os.makedirs("./translation_record/cache", exist_ok=True) self.sqlwrite2 = autosql( sqlite3.connect( "./translation_record/cache/{}.sqlite".format(self.typename), diff --git a/LunaTranslator/LunaTranslator/tts/NeoSpeech.py b/LunaTranslator/LunaTranslator/tts/NeoSpeech.py index 942aab5e..8936f7e6 100644 --- a/LunaTranslator/LunaTranslator/tts/NeoSpeech.py +++ b/LunaTranslator/LunaTranslator/tts/NeoSpeech.py @@ -10,6 +10,7 @@ from myutils.subproc import subproc_w, autoproc class TTS(TTSbase): def checkchange(self): fname = str(time.time()) + os.makedirs("./cache/tts/", exist_ok=True) savepath = os.path.join(os.getcwd(), "cache/tts", fname) exepath = os.path.join(os.getcwd(), "files/plugins/shareddllproxy32.exe") t = time.time() diff --git a/LunaTranslator/LunaTranslator/tts/edgetts.py b/LunaTranslator/LunaTranslator/tts/edgetts.py index 971436f1..be28091f 100644 --- a/LunaTranslator/LunaTranslator/tts/edgetts.py +++ b/LunaTranslator/LunaTranslator/tts/edgetts.py @@ -5,7 +5,7 @@ import websocket from datetime import datetime import time import re -import uuid +import uuid, os import time import requests import time @@ -193,6 +193,7 @@ def transferMsTTSData(rate, content, voice): else: break ws.close() + os.makedirs("./cache/tts/", exist_ok=True) outputPath = "./cache/tts/" + str(time.time()) + ".mp3" with open(outputPath, "wb") as audio_out: audio_out.write(audio_stream) diff --git a/LunaTranslator/LunaTranslator/tts/huoshantts.py b/LunaTranslator/LunaTranslator/tts/huoshantts.py index fea4919c..fe5de2ad 100644 --- a/LunaTranslator/LunaTranslator/tts/huoshantts.py +++ b/LunaTranslator/LunaTranslator/tts/huoshantts.py @@ -1,7 +1,7 @@ from traceback import print_exc import requests import base64 -import time +import time, os from tts.basettsclass import TTSbase @@ -48,7 +48,7 @@ class TTS(TTSbase): ) fname = str(time.time()) b64 = base64.b64decode(response.json()["audio"]["data"]) - + os.makedirs("./cache/tts/", exist_ok=True) with open("./cache/tts/" + fname + ".mp3", "wb") as ff: ff.write(b64) diff --git a/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py b/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py index bcabc5f0..8184f256 100644 --- a/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py +++ b/LunaTranslator/LunaTranslator/tts/vitsSimpleAPI.py @@ -1,5 +1,5 @@ import requests -import time +import time, os from tts.basettsclass import TTSbase from urllib.parse import quote @@ -29,6 +29,7 @@ class TTS(TTSbase): f"http://127.0.0.1:23456/voice/{model}?text={encoded_content}&id={idx}&lang=ja&format=wav" ).content fname = str(time.time()) + os.makedirs("./cache/tts/", exist_ok=True) with open("./cache/tts/" + fname + ".wav", "wb") as ff: ff.write(response) diff --git a/LunaTranslator/LunaTranslator/tts/voiceroid2.py b/LunaTranslator/LunaTranslator/tts/voiceroid2.py index d4e845b9..12eb629f 100644 --- a/LunaTranslator/LunaTranslator/tts/voiceroid2.py +++ b/LunaTranslator/LunaTranslator/tts/voiceroid2.py @@ -75,6 +75,7 @@ class TTS(TTSbase): self.rate = globalconfig["ttscommon"]["rate"] self.voice = self.config["voice"] fname = str(time.time()) + os.makedirs("./cache/tts/", exist_ok=True) savepath = os.path.join(os.getcwd(), "cache/tts", fname + ".wav") dllpath = os.path.join(self.path, "aitalked.dll") ##dllpath=r'C:\Users\wcy\Downloads\zunko\aitalked.dll' diff --git a/LunaTranslator/LunaTranslator/tts/voiceroidplus.py b/LunaTranslator/LunaTranslator/tts/voiceroidplus.py index 31e5c7a1..34ba6704 100644 --- a/LunaTranslator/LunaTranslator/tts/voiceroidplus.py +++ b/LunaTranslator/LunaTranslator/tts/voiceroidplus.py @@ -73,6 +73,7 @@ class TTS(TTSbase): self.rate = globalconfig["ttscommon"]["rate"] self.voice = self.config["voice"] fname = str(time.time()) + os.makedirs("./cache/tts/", exist_ok=True) savepath = os.path.join(os.getcwd(), "cache/tts", fname + ".wav") dllpath = os.path.join(self.path, "aitalked.dll") diff --git a/LunaTranslator/LunaTranslator/tts/voicevox.py b/LunaTranslator/LunaTranslator/tts/voicevox.py index e73cbbc4..84fe29a2 100644 --- a/LunaTranslator/LunaTranslator/tts/voicevox.py +++ b/LunaTranslator/LunaTranslator/tts/voicevox.py @@ -101,6 +101,7 @@ class TTS(TTSbase): headers=headers, data=json.dumps(response.json()), ) + os.makedirs("./cache/tts/", exist_ok=True) with open("./cache/tts/" + fname + ".wav", "wb") as ff: ff.write(response.content) return "./cache/tts/" + fname + ".wav" diff --git a/LunaTranslator/LunaTranslator/tts/windowstts.py b/LunaTranslator/LunaTranslator/tts/windowstts.py index cc7195da..494fffe7 100644 --- a/LunaTranslator/LunaTranslator/tts/windowstts.py +++ b/LunaTranslator/LunaTranslator/tts/windowstts.py @@ -36,7 +36,7 @@ class TTS(TTSbase): version = 7 voice_idx = self._7m[voice] fname = str(time.time()) - + os.makedirs("./cache/tts/", exist_ok=True) winsharedutils.SAPI_Speak( content, version, voice_idx, rate, 100, "./cache/tts/" + fname + ".wav" ) diff --git a/LunaTranslator/LunaTranslator/tts/youdaotts.py b/LunaTranslator/LunaTranslator/tts/youdaotts.py index 90dff6c5..bf5039b1 100644 --- a/LunaTranslator/LunaTranslator/tts/youdaotts.py +++ b/LunaTranslator/LunaTranslator/tts/youdaotts.py @@ -1,5 +1,5 @@ import requests -import time +import time, os from tts.basettsclass import TTSbase @@ -39,6 +39,7 @@ class TTS(TTSbase): proxies={"http": None, "https": None}, ).content fname = str(time.time()) + os.makedirs("./cache/tts/", exist_ok=True) with open("./cache/tts/" + fname + ".mp3", "wb") as ff: ff.write(response) diff --git a/LunaTranslator/files/lang/ar.json b/LunaTranslator/files/lang/ar.json index 06785906..59f77348 100644 --- a/LunaTranslator/files/lang/ar.json +++ b/LunaTranslator/files/lang/ar.json @@ -569,7 +569,6 @@ "使用说明": "تعليمات الاستخدام", "注册地址": "العنوان المسجل", "API接口地址": "عنوان واجهة المعهد", - "当前路径读写权限不足,请使用管理员权限运行!": "المسار الحالي لا يملك أذونات القراءة والكتابة ، يرجى استخدام أذونات المسؤول لتشغيل !", "通用文字识别(标准版)": "العام التعرف على الحروف ( طبعة قياسية )", "通用文字识别(标准含位置版)": "العام التعرف على الحروف ( بما في ذلك موقع النسخة القياسية )", "通用文字识别(高精度版)": "العام التعرف على الحروف ( عالية الدقة )", diff --git a/LunaTranslator/files/lang/cht.json b/LunaTranslator/files/lang/cht.json index f6369499..94de7a17 100644 --- a/LunaTranslator/files/lang/cht.json +++ b/LunaTranslator/files/lang/cht.json @@ -569,7 +569,6 @@ "使用说明": "使用說明", "注册地址": "註冊地址", "API接口地址": "API介面地址", - "当前路径读写权限不足,请使用管理员权限运行!": "當前路徑讀寫許可權不足,請使用管理員許可權運行!", "通用文字识别(标准版)": "通用文字識別(標準版)", "通用文字识别(标准含位置版)": "通用文字識別(標準含位置版)", "通用文字识别(高精度版)": "通用文字識別(高精度版)", diff --git a/LunaTranslator/files/lang/en.json b/LunaTranslator/files/lang/en.json index abe3ca1e..3e236e05 100644 --- a/LunaTranslator/files/lang/en.json +++ b/LunaTranslator/files/lang/en.json @@ -569,7 +569,6 @@ "使用说明": "Instructions for use", "注册地址": "Company Registered Address", "API接口地址": "API interface address", - "当前路径读写权限不足,请使用管理员权限运行!": "The current path has insufficient read and write permissions. Please run with administrator privileges!", "通用文字识别(标准版)": "Universal Text Recognition (Standard Edition)", "通用文字识别(标准含位置版)": "Universal text recognition (standard with positional version)", "通用文字识别(高精度版)": "Universal Text Recognition (High Precision Edition)", diff --git a/LunaTranslator/files/lang/es.json b/LunaTranslator/files/lang/es.json index 7a95fd8a..1c53b566 100644 --- a/LunaTranslator/files/lang/es.json +++ b/LunaTranslator/files/lang/es.json @@ -569,7 +569,6 @@ "使用说明": "Instrucciones de uso", "注册地址": "Dirección registrada", "API接口地址": "Dirección de la interfaz API", - "当前路径读写权限不足,请使用管理员权限运行!": "¡Los permisos de lectura y escritura de la ruta actual son insuficientes, ¡ por favor, use los permisos de Administrador para ejecutar!", "通用文字识别(标准版)": "Reconocimiento de texto universal (versión estándar)", "通用文字识别(标准含位置版)": "Reconocimiento de texto universal (estándar con versión de ubicación)", "通用文字识别(高精度版)": "Reconocimiento de texto universal (versión de alta precisión)", diff --git a/LunaTranslator/files/lang/fr.json b/LunaTranslator/files/lang/fr.json index 76bb80a4..6010d390 100644 --- a/LunaTranslator/files/lang/fr.json +++ b/LunaTranslator/files/lang/fr.json @@ -569,7 +569,6 @@ "使用说明": "Instructions d'utilisation", "注册地址": "Adresse enregistrée", "API接口地址": "Adresse de l'interface API", - "当前路径读写权限不足,请使用管理员权限运行!": "Le chemin actuel n'a pas les droits de lecture et d'écriture suffisants, exécutez - le avec les droits d'administrateur!", "通用文字识别(标准版)": "Reconnaissance de texte universelle (version standard)", "通用文字识别(标准含位置版)": "Reconnaissance de texte universelle (version standard avec emplacement)", "通用文字识别(高精度版)": "Reconnaissance de texte universelle (version haute précision)", diff --git a/LunaTranslator/files/lang/it.json b/LunaTranslator/files/lang/it.json index 114fbbbd..72167a54 100644 --- a/LunaTranslator/files/lang/it.json +++ b/LunaTranslator/files/lang/it.json @@ -569,7 +569,6 @@ "使用说明": "Istruzioni per l'uso", "注册地址": "Indirizzo di registrazione della società", "API接口地址": "Indirizzo interfaccia API", - "当前路径读写权限不足,请使用管理员权限运行!": "Il percorso corrente non ha permessi di lettura e scrittura sufficienti. Esegui con privilegi di amministratore!", "通用文字识别(标准版)": "Riconoscimento universale del testo (edizione standard)", "通用文字识别(标准含位置版)": "Riconoscimento universale del testo (standard con versione posizionale)", "通用文字识别(高精度版)": "Riconoscimento universale del testo (Edizione ad alta precisione)", diff --git a/LunaTranslator/files/lang/ja.json b/LunaTranslator/files/lang/ja.json index dd560aa8..088f281b 100644 --- a/LunaTranslator/files/lang/ja.json +++ b/LunaTranslator/files/lang/ja.json @@ -569,7 +569,6 @@ "使用说明": "使用方法", "注册地址": "登録アドレス", "API接口地址": "APIインタフェースアドレス", - "当前路径读写权限不足,请使用管理员权限运行!": "現在のパスは読み書き権限が不足しています。管理者権限を使用して実行してください!", "通用文字识别(标准版)": "汎用文字認識(標準版)", "通用文字识别(标准含位置版)": "共通文字認識(標準位置版含む)", "通用文字识别(高精度版)": "汎用文字認識(高精度版)", diff --git a/LunaTranslator/files/lang/ko.json b/LunaTranslator/files/lang/ko.json index 73987422..1bf9add8 100644 --- a/LunaTranslator/files/lang/ko.json +++ b/LunaTranslator/files/lang/ko.json @@ -569,7 +569,6 @@ "使用说明": "사용 설명", "注册地址": "등록 주소", "API接口地址": "API 인터페이스 주소", - "当前路径读写权限不足,请使用管理员权限运行!": "현재 경로에 읽기 및 쓰기 권한이 부족합니다. 관리자 권한으로 실행하십시오!", "通用文字识别(标准版)": "일반 텍스트 인식 (표준)", "通用文字识别(标准含位置版)": "일반 텍스트 인식 (위치 버전 표준 포함)", "通用文字识别(高精度版)": "일반 텍스트 인식 (고정밀 버전)", diff --git a/LunaTranslator/files/lang/pl.json b/LunaTranslator/files/lang/pl.json index 748dc333..c9af01cf 100644 --- a/LunaTranslator/files/lang/pl.json +++ b/LunaTranslator/files/lang/pl.json @@ -569,7 +569,6 @@ "使用说明": "Instrukcja użytkowania", "注册地址": "Adres zarejestrowany w firmie", "API接口地址": "Adres interfejsu API", - "当前路径读写权限不足,请使用管理员权限运行!": "Bieżąca ścieżka ma niewystarczające uprawnienia do odczytu i zapisu. Proszę uruchomić z uprawnieniami administratora!", "通用文字识别(标准版)": "Uniwersalne rozpoznawanie tekstu (wersja standardowa)", "通用文字识别(标准含位置版)": "Uniwersalne rozpoznawanie tekstu (standardowo z wersją pozycyjną)", "通用文字识别(高精度版)": "Uniwersalne rozpoznawanie tekstu (High Precision Edition)", diff --git a/LunaTranslator/files/lang/ru.json b/LunaTranslator/files/lang/ru.json index 43fe3077..9977a3f1 100644 --- a/LunaTranslator/files/lang/ru.json +++ b/LunaTranslator/files/lang/ru.json @@ -569,7 +569,6 @@ "使用说明": "Описание использования", "注册地址": "Адрес регистрации", "API接口地址": "Адрес интерфейса API", - "当前路径读写权限不足,请使用管理员权限运行!": "Текущие права чтения и записи пути недостаточны, пожалуйста, используйте права администратора для запуска!", "通用文字识别(标准版)": "Универсальное распознавание текста (стандартная версия)", "通用文字识别(标准含位置版)": "Универсальное распознавание текста (стандартная версия с указанием местоположения)", "通用文字识别(高精度版)": "Универсальное распознавание текста (высокоточная версия)", diff --git a/LunaTranslator/files/lang/th.json b/LunaTranslator/files/lang/th.json index 502e83e7..5856d7ca 100644 --- a/LunaTranslator/files/lang/th.json +++ b/LunaTranslator/files/lang/th.json @@ -518,7 +518,6 @@ "韩语(EUC-KR)": "เกาหลี (EUC-KR)", "选择路径": "เลือกเส้นทาง", "普通字体": "Normal ตัวอักษร", - "当前路径读写权限不足,请使用管理员权限运行!": "การเข้าถึงการอ่านและการเขียนพาธปัจจุบันไม่เพียงพอโปรดใช้สิทธิ์ของผู้ดูแลระบบเพื่อเรียกใช้!", "快捷键": "ปุ่มลัด", "转区启动": "เริ่มการเปลี่ยนโซน", "快译通": "แปลด่วน", diff --git a/LunaTranslator/files/lang/tr.json b/LunaTranslator/files/lang/tr.json index f3157ed8..066deb2b 100644 --- a/LunaTranslator/files/lang/tr.json +++ b/LunaTranslator/files/lang/tr.json @@ -569,7 +569,6 @@ "使用说明": "Kullanılacak talimatlar", "注册地址": "Şirket Kayıtlı Adresi", "API接口地址": "API arayüz adresi", - "当前路径读写权限不足,请使用管理员权限运行!": "Mevcut yolun okuma ve yazma izni yetersiz. Lütfen yönetici hakkınla çalışın!", "通用文字识别(标准版)": "Universal Text Recognition (Standard Edition)", "通用文字识别(标准含位置版)": "Evrensel metin tanımlaması (pozisyonel versiyonla standart)", "通用文字识别(高精度版)": "Universal Text Recognition (High Precision Edition)", diff --git a/LunaTranslator/files/lang/uk.json b/LunaTranslator/files/lang/uk.json index c34a0f37..572ec213 100644 --- a/LunaTranslator/files/lang/uk.json +++ b/LunaTranslator/files/lang/uk.json @@ -569,7 +569,6 @@ "使用说明": "Накази використання", "注册地址": "Реєстрована адреса компанії", "API接口地址": "Адреса інтерфейсу API", - "当前路径读写权限不足,请使用管理员权限运行!": "У поточному шляху недостатньо прав на читання і запис. Будь ласка, запускайте привілеї адміністратора!", "通用文字识别(标准版)": "Універсальне визнання тексту (стандартне редагування)", "通用文字识别(标准含位置版)": "Універсальне розпізнавання тексту (стандартне з позиційною версією)", "通用文字识别(高精度版)": "Universal Text Recognition (High Precision Edition)", diff --git a/LunaTranslator/files/lang/vi.json b/LunaTranslator/files/lang/vi.json index 675fbcb0..331edc08 100644 --- a/LunaTranslator/files/lang/vi.json +++ b/LunaTranslator/files/lang/vi.json @@ -569,7 +569,6 @@ "使用说明": "Hướng dẫn sử dụng", "注册地址": "Địa chỉ đăng ký", "API接口地址": "Địa chỉ giao diện API", - "当前路径读写权限不足,请使用管理员权限运行!": "Đường dẫn hiện tại không đủ quyền đọc và ghi, hãy chạy với quyền quản trị viên!", "通用文字识别(标准版)": "Nhận dạng văn bản chung (Standard Edition)", "通用文字识别(标准含位置版)": "Nhận dạng văn bản chung (phiên bản tiêu chuẩn bao gồm vị trí)", "通用文字识别(高精度版)": "Nhận dạng văn bản chung (phiên bản chính xác cao)", diff --git a/LunaTranslator/files/lang/zh.json b/LunaTranslator/files/lang/zh.json index 516588d9..498cc318 100644 --- a/LunaTranslator/files/lang/zh.json +++ b/LunaTranslator/files/lang/zh.json @@ -513,7 +513,6 @@ "韩语(EUC-KR)": "", "选择路径": "", "普通字体": "", - "当前路径读写权限不足,请使用管理员权限运行!": "", "快捷键": "", "转区启动": "", "快译通": "",