The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(i18n): i18n updates (#753)
Zhenfu Shi6ba17e15cbdb
diff --git a/app/assets/i18n/gd3.en_US.ts b/app/assets/i18n/gd3.en_US.tsindex a7ee785c..85b31316 100644--- a/app/assets/i18n/gd3.en_US.ts+++ b/app/assets/i18n/gd3.en_US.ts@@ -3004,12 +3004,14 @@ Only allow this request if you have requested "Auto Pair" from the ext<translation type="vanished">Download task added</translation></message><message>+ <location filename="../../view/notification_catalog.py" line="3"/><source>功能包更新</source>- <translation type="vanished">Feature Pack Update</translation>+ <translation>Feature Pack Update</translation></message><message>+ <location filename="../../view/notification_catalog.py" line="4"/><source>{0} 将在下次启动时生效</source>- <translation type="vanished">{0} will take effect on next launch</translation>+ <translation>{0} will take effect on next launch</translation></message></context><context>@@ -3546,11 +3548,7 @@ Wildcard: *.pcs.baidu.com (matches all subdomains)</translation><message><location filename="../../view/components/progress_toast.py" line="99"/><source>重启后生效</source>- <translation type="unfinished"></translation>- </message>- <message>- <source>下次启动时生效</source>- <translation type="vanished">Will take effect on next launch</translation>+ <translation>Applies after app restart</translation></message><message><location filename="../../view/components/progress_toast.py" line="109"/>@@ -4994,6 +4992,7 @@ Data will be copied to new location and the program will then exit. Please manua<name>TaskErrors</name><message><location filename="../../view/error_catalog.py" line="3"/>+ <location filename="../../../features/ed2k_pack/error_catalog.py" line="4"/><location filename="../../../features/yt_dlp_pack/error_catalog.py" line="13"/><source>{name} 未安装,请在设置中安装</source><translation>{name} is not installed, please install it in Settings</translation>@@ -5072,12 +5071,9 @@ Data will be copied to new location and the program will then exit. Please manua<translation>ED2k error: {detail}</translation></message><message>+ <location filename="../../../features/ed2k_pack/error_catalog.py" line="5"/><source>ED2kSession 未启动</source>- <translation type="vanished"> ED2k session not started</translation>- </message>- <message>- <source>未找到 goed2kd,请先在设置中安装</source>- <translation type="vanished">goed2kd is not installed, please install it in Settings</translation>+ <translation>ED2k session not started</translation></message><message><location filename="../../../features/ffmpeg_pack/error_catalog.py" line="3"/>diff --git a/app/view/notification_catalog.py b/app/view/notification_catalog.pynew file mode 100644index 00000000..adb9f048--- /dev/null+++ b/app/view/notification_catalog.py@@ -0,0 +1,4 @@+from PySide6.QtCore import QT_TRANSLATE_NOOP as N++N("MainWindow", "功能包更新")+N("MainWindow", "{0} 将在下次启动时生效")diff --git a/features/ed2k_pack/error_catalog.py b/features/ed2k_pack/error_catalog.pyindex f8d5f359..3cd86cc0 100644--- a/features/ed2k_pack/error_catalog.py+++ b/features/ed2k_pack/error_catalog.py@@ -1,3 +1,5 @@from PySide6.QtCore import QT_TRANSLATE_NOOP as NN("TaskErrors", "ED2k 错误:{detail}")+N("TaskErrors", "{name} 未安装,请在设置中安装")+N("TaskErrors", "ED2kSession 未启动")diff --git a/features/ed2k_pack/session.py b/features/ed2k_pack/session.pyindex aab7d246..26a0a4fd 100644--- a/features/ed2k_pack/session.py+++ b/features/ed2k_pack/session.py@@ -5,6 +5,7 @@ from pathlib import Pathfrom loguru import loggerfrom app.config.paths import APP_DATA_DIR+from app.models.task import TaskErrorfrom .config import ed2kConfig, ed2kRuntimefrom .python_ed2k import Client, Settings@@ -25,7 +26,7 @@ class ED2kSession:def client(self) -> Client:if self._client is None:- raise RuntimeError("ED2kSession 未启动")+ raise TaskError("ED2kSession 未启动")return self._clientasync def open(self) -> None:@@ -33,7 +34,9 @@ class ED2kSession:returnpath = ed2kRuntime.path()if not path:- raise RuntimeError("未找到 goed2kd,请先在设置中安装")+ raise TaskError(+ "{name} 未安装,请在设置中安装", name=ed2kRuntime.name+ )client = Client(Path(path), Path(APP_DATA_DIR) / "ed2k_data")try:await client.start(Settings(