Skip to content

The only downloader you need. 下载器的集大成者。

fix(i18n): load Cantonese translation catalog (#837)

Zhenfu Shi4b89f4fe9987
diff --git a/app/assets/i18n/gd3.en_US.qm b/app/assets/i18n/gd3.en_US.qm
index 3f54e3a7..eb84f026 100644
Binary files a/app/assets/i18n/gd3.en_US.qm and b/app/assets/i18n/gd3.en_US.qm differ
diff --git a/app/assets/i18n/gd3.en_US.ts b/app/assets/i18n/gd3.en_US.ts
index 9620a9a1..67c65f0e 100644
--- a/app/assets/i18n/gd3.en_US.ts
+++ b/app/assets/i18n/gd3.en_US.ts
@@ -582,7 +582,7 @@ http://example.com/{mp4,mkv}/video</translation>
<location filename="../../../features/bili_pack/config.py" line="171"/>
<location filename="../../../features/bili_pack/config.py" line="204"/>
<source>状态:未登录</source>
- <translation>Status: Not Logged In</translation>
+ <translation>Status: Not logged in</translation>
</message>
<message>
<location filename="../../../features/bili_pack/config.py" line="173"/>
@@ -2326,7 +2326,7 @@ select &quot;No Emulation&quot; to send as-is</translation>
<message>
<location filename="../../view/components/setting_cards.py" line="469"/>
<source>TLS 指纹与 User-Agent 预设</source>
- <translation>TLS Fingerprint &amp; User-Agent Preset</translation>
+ <translation>TLS fingerprints &amp; User-Agent presets</translation>
</message>
<message>
<location filename="../../view/components/setting_cards.py" line="483"/>
@@ -4143,7 +4143,8 @@ Path: {1}</translation>
<message>
<location filename="../../view/pages/setting_page.py" line="107"/>
<source>每线程剩余量大于此值时, 有线程完成或自动提速条件满足会触发重新分配</source>
- <translation>If threads&apos; workload exceeds this value, redistribution will trigger when a thread completes or Auto Boost is enabled</translation>
+ <translation>If threads&apos; workload exceeds this value, redistribution will trigger
+when a thread completes or Auto Boost is enabled</translation>
</message>
<message>
<location filename="../../view/pages/setting_page.py" line="79"/>
@@ -4153,7 +4154,7 @@ Path: {1}</translation>
<message>
<location filename="../../view/pages/setting_page.py" line="80"/>
<source>当下载任务界面限速开关开启时,所有任务将根据此值进行限速</source>
- <translation>If the speed limit switch is enabled on the download tasks page, all tasks will be limited according to this value</translation>
+ <translation>When Speed Limit is enabled at the Tasks page, combined speed of all tasks will be limited to this value</translation>
</message>
<message>
<location filename="../../view/pages/setting_page.py" line="113"/>
@@ -4333,7 +4334,7 @@ Path: {1}</translation>
<message>
<location filename="../../view/pages/setting_page.py" line="148"/>
<source>商店版扩展需等待审核后才能获得更新</source>
- <translation>Store version requires review before receiving updates</translation>
+ <translation>Store version updates may be delayed due to the review process</translation>
</message>
<message>
<location filename="../../view/pages/setting_page.py" line="159"/>
diff --git a/app/assets/resources.qrc b/app/assets/resources.qrc
index 1ef989f9..50e90354 100644
--- a/app/assets/resources.qrc
+++ b/app/assets/resources.qrc
@@ -24,6 +24,7 @@
<file alias="gd3.pt_BR.qm">i18n/gd3.pt_BR.qm</file>
<file alias="gd3.es_ES.qm">i18n/gd3.es_ES.qm</file>
<file alias="gd3.zh.qm">i18n/gd3.zh_CN.qm</file>
+ <file alias="gd3.yue.qm">i18n/gd3.zh_HK.qm</file>
<file alias="gd3.en.qm">i18n/gd3.en_US.qm</file>
<file alias="gd3.ja.qm">i18n/gd3.ja_JP.qm</file>
<file alias="gd3.ru.qm">i18n/gd3.ru_RU.qm</file>
diff --git a/scripts/sync_i18n_res.py b/scripts/sync_i18n_res.py
index 438f9bab..7819dc2f 100644
--- a/scripts/sync_i18n_res.py
+++ b/scripts/sync_i18n_res.py
@@ -9,6 +9,7 @@ REPO = Path(__file__).resolve().parent.parent
LANGUAGES = ["zh_CN", "en_US", "ja_JP", "zh_TW", "zh_HK", "ru_RU", "pt_BR", "es_ES"]
LANGUAGE_FAMILY_FALLBACKS = {
"zh": "zh_CN",
+ "yue": "zh_HK",
"en": "en_US",
"ja": "ja_JP",
"ru": "ru_RU",