From 06c4c5861349c3cea948c384ea2043dbd686deb3 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 5 Nov 2022 01:33:17 +0200 Subject: [PATCH] Fine tune translations loading for Chinese locales Closes #17506 --- .tx/config | 4 ++-- src/lang/lang.qrc | 2 +- src/lang/{qbittorrent_zh.ts => qbittorrent_zh_CN.ts} | 0 src/webui/www/translations/webui_translations.qrc | 2 +- src/webui/www/translations/{webui_zh.ts => webui_zh_CN.ts} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/lang/{qbittorrent_zh.ts => qbittorrent_zh_CN.ts} (100%) rename src/webui/www/translations/{webui_zh.ts => webui_zh_CN.ts} (100%) diff --git a/.tx/config b/.tx/config index 2b8d3296e..28fa38bf9 100644 --- a/.tx/config +++ b/.tx/config @@ -3,7 +3,7 @@ host = https://www.transifex.com [qbittorrent.qbittorrent_master] file_filter = src/lang/qbittorrent_.ts -lang_map = pt: pt_PT +lang_map = pt: pt_PT, zh: zh_CN source_file = src/lang/qbittorrent_en.ts source_lang = en type = QT @@ -19,7 +19,7 @@ mode = developer [qbittorrent.qbittorrent_webui] file_filter = src/webui/www/translations/webui_.ts -lang_map = pt: pt_PT +lang_map = pt: pt_PT, zh: zh_CN source_file = src/webui/www/translations/webui_en.ts source_lang = en type = QT diff --git a/src/lang/lang.qrc b/src/lang/lang.qrc index 2657f5374..62908ac87 100644 --- a/src/lang/lang.qrc +++ b/src/lang/lang.qrc @@ -53,7 +53,7 @@ qbittorrent_uk.qm qbittorrent_uz@Latn.qm qbittorrent_vi.qm - qbittorrent_zh.qm + qbittorrent_zh_CN.qm qbittorrent_zh_HK.qm qbittorrent_zh_TW.qm diff --git a/src/lang/qbittorrent_zh.ts b/src/lang/qbittorrent_zh_CN.ts similarity index 100% rename from src/lang/qbittorrent_zh.ts rename to src/lang/qbittorrent_zh_CN.ts diff --git a/src/webui/www/translations/webui_translations.qrc b/src/webui/www/translations/webui_translations.qrc index c4287cc02..cbb6a9a19 100644 --- a/src/webui/www/translations/webui_translations.qrc +++ b/src/webui/www/translations/webui_translations.qrc @@ -53,7 +53,7 @@ webui_uk.qm webui_uz@Latn.qm webui_vi.qm - webui_zh.qm + webui_zh_CN.qm webui_zh_HK.qm webui_zh_TW.qm diff --git a/src/webui/www/translations/webui_zh.ts b/src/webui/www/translations/webui_zh_CN.ts similarity index 100% rename from src/webui/www/translations/webui_zh.ts rename to src/webui/www/translations/webui_zh_CN.ts