aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-29 00:30:41 +0000
committersaturneric <[email protected]>2024-07-29 00:30:41 +0000
commit4e7f67812edd688f30e54f48517b3e16c5887553 (patch)
tree70ab7c4b256647fabbe8d76c892083284d4a8ebd
parentfix: remove dependency of assuan (diff)
downloadModules-4e7f67812edd688f30e54f48517b3e16c5887553.tar.gz
Modules-4e7f67812edd688f30e54f48517b3e16c5887553.zip
feat: improve modules translation
-rw-r--r--include/GFModuleCommonUtils.hpp11
-rw-r--r--src/m_gpg_info/CMakeLists.txt20
-rw-r--r--src/m_gpg_info/GnuPGInfoGatheringModule.cpp2
-rw-r--r--src/m_gpg_info/ts/ModuleGnuPGInfoGathering.de_DE.ts94
-rw-r--r--src/m_gpg_info/ts/ModuleGnuPGInfoGathering.en_US.ts90
-rw-r--r--src/m_gpg_info/ts/ModuleGnuPGInfoGathering.fr_FR.ts94
-rw-r--r--src/m_gpg_info/ts/ModuleGnuPGInfoGathering.it_iT.ts95
-rw-r--r--src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_CN.ts90
-rw-r--r--src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_TW.ts95
-rw-r--r--src/m_ver_check/CMakeLists.txt21
-rw-r--r--src/m_ver_check/VersionCheckingModule.cpp11
-rw-r--r--src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts48
-rw-r--r--src/m_ver_check/ts/ModuleVersionChecking.en_US.ts36
-rw-r--r--src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts62
-rw-r--r--src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts76
-rw-r--r--src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts43
-rw-r--r--src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts76
17 files changed, 829 insertions, 135 deletions
diff --git a/include/GFModuleCommonUtils.hpp b/include/GFModuleCommonUtils.hpp
index 2e18cc5..0c29dc7 100644
--- a/include/GFModuleCommonUtils.hpp
+++ b/include/GFModuleCommonUtils.hpp
@@ -45,6 +45,17 @@
#define LISTEN(event) GFModuleListenEvent(GFGetModuleID(), DUP(event))
+#define LOAD_TRANS(name) \
+ { \
+ QFile f(QString(":/i18n/%2.%1.qm").arg(GFAppActiveLocale()).arg(name)); \
+ if (f.exists() && f.open(QIODevice::ReadOnly)) { \
+ FLOG_INFO("%3 loading, locale: %1, path: %2", GFAppActiveLocale(), \
+ f.fileName(), UDUP(GFGetModuleID())); \
+ auto b = f.readAll(); \
+ GFAppRegisterTranslator(AllocBufferAndCopy(b), b.size()); \
+ } \
+ }
+
#define EXECUTE_MODULE() \
auto GFExecuteModule(GFModuleEvent* p_event) -> int { \
auto event = ConvertEventToMap(p_event);
diff --git a/src/m_gpg_info/CMakeLists.txt b/src/m_gpg_info/CMakeLists.txt
index 37f36e4..1a98483 100644
--- a/src/m_gpg_info/CMakeLists.txt
+++ b/src/m_gpg_info/CMakeLists.txt
@@ -31,7 +31,7 @@ aux_source_directory(. INTEGRATED_MODULE_SOURCE)
add_library(mod_gpg_info SHARED ${INTEGRATED_MODULE_SOURCE})
# install dir
-install(TARGETS mod_gpg_info
+install(TARGETS mod_gpg_info
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/modules")
# link sdk
@@ -51,12 +51,14 @@ target_compile_features(mod_gpg_info PRIVATE cxx_std_17)
# i18n
set(LOCALE_TS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ts)
-set(TS_FILES "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.en_US.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.de_DE.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.fr_FR.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.zh_CN.ts")
+set(TS_FILES "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.en_US.ts"
+ "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.de_DE.ts"
+ "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.fr_FR.ts"
+ "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.it_iT.ts"
+ "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.zh_CN.ts"
+ "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.zh_TW.ts")
qt_add_translations(mod_gpg_info
- RESOURCE_PREFIX "/i18n"
- TS_FILES ${TS_FILES}
- SOURCES ${MODULE_SOURCE_FILES}
- INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
+ RESOURCE_PREFIX "/i18n"
+ TS_FILES ${TS_FILES}
+ SOURCES ${MODULE_SOURCE_FILES}
+ INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp
index 9339882..2e13590 100644
--- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp
+++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp
@@ -81,6 +81,8 @@ auto GFRegisterModule() -> int {
auto GFActiveModule() -> int {
LISTEN("REQUEST_GATHERING_GNUPG_INFO");
+
+ LOAD_TRANS("ModuleGnuPGInfoGathering");
return 0;
}
diff --git a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.de_DE.ts b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.de_DE.ts
index 1f068c5..84933be 100644
--- a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.de_DE.ts
+++ b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.de_DE.ts
@@ -1,3 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS/>
+<TS version="2.1" language="de_DE">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../GnuPGInfoGatheringModule.cpp" line="76"/>
+ <source>GnuPG</source>
+ <translation type="unfinished">GnuPG</translation>
+ </message>
+</context>
+<context>
+ <name>GnupgTab</name>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Name</source>
+ <translation type="unfinished">Name</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Description</source>
+ <translation type="unfinished">Beschreibung</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Version</source>
+ <translation type="unfinished">Version</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Checksum</source>
+ <translation type="unfinished">Prüfsumme</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Binary Path</source>
+ <translation type="unfinished">Binärer Pfad</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="50"/>
+ <source>Components</source>
+ <translation type="unfinished">Komponenten</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="51"/>
+ <source>Directories</source>
+ <translation type="unfinished">Verzeichnisse</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="52"/>
+ <source>Options</source>
+ <translation type="unfinished">Optionen</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Directory Type</source>
+ <translation type="unfinished">Verzeichnis Typ</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Path</source>
+ <translation type="unfinished">Pfad</translation>
+ </message>
+ <message>
+ <source>Configurations</source>
+ <translation type="obsolete">Konfigurationen</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Component</source>
+ <translation>Komponente</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Group</source>
+ <translation>Gruppe</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Key</source>
+ <translation type="unfinished">Schlüssel</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Default Value</source>
+ <translation>Standardwert</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="94"/>
+ <source>Value</source>
+ <translation type="unfinished">Wert</translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.en_US.ts b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.en_US.ts
index 1f068c5..b3e067a 100644
--- a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.en_US.ts
+++ b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.en_US.ts
@@ -1,3 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS/>
+<TS version="2.1">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../GnuPGInfoGatheringModule.cpp" line="76"/>
+ <source>GnuPG</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
+ <name>GnupgTab</name>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Name</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Description</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Version</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Checksum</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Binary Path</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="50"/>
+ <source>Components</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="51"/>
+ <source>Directories</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="52"/>
+ <source>Options</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Directory Type</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Path</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Component</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Group</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Key</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Default Value</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="94"/>
+ <source>Value</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.fr_FR.ts b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.fr_FR.ts
index 1f068c5..13bc2fe 100644
--- a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.fr_FR.ts
+++ b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.fr_FR.ts
@@ -1,3 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS/>
+<TS version="2.1" language="fr_FR">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../GnuPGInfoGatheringModule.cpp" line="76"/>
+ <source>GnuPG</source>
+ <translation type="unfinished">GnuPG</translation>
+ </message>
+</context>
+<context>
+ <name>GnupgTab</name>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Name</source>
+ <translation type="unfinished">Nom</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Description</source>
+ <translation type="unfinished">Description</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Version</source>
+ <translation type="unfinished">Version</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Checksum</source>
+ <translation type="unfinished">Somme de contrôle</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Binary Path</source>
+ <translation type="unfinished">Chemin binaire</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="50"/>
+ <source>Components</source>
+ <translation type="unfinished">Composants</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="51"/>
+ <source>Directories</source>
+ <translation type="unfinished">Annuaires</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="52"/>
+ <source>Options</source>
+ <translation type="unfinished">Options</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Directory Type</source>
+ <translation type="unfinished">Type de répertoire</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Path</source>
+ <translation type="unfinished">Chemin d&apos;accès</translation>
+ </message>
+ <message>
+ <source>Configurations</source>
+ <translation type="obsolete">Configurations</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Component</source>
+ <translation type="unfinished">Composant</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Group</source>
+ <translation type="unfinished">Groupe</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Key</source>
+ <translation type="unfinished">Clé</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Default Value</source>
+ <translation type="unfinished">Valeur par défaut</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="94"/>
+ <source>Value</source>
+ <translation type="unfinished">Valeur</translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.it_iT.ts b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.it_iT.ts
new file mode 100644
index 0000000..d35e0bb
--- /dev/null
+++ b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.it_iT.ts
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="it_IT">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../GnuPGInfoGatheringModule.cpp" line="76"/>
+ <source>GnuPG</source>
+ <translation type="unfinished">GnuPG</translation>
+ </message>
+</context>
+<context>
+ <name>GnupgTab</name>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Name</source>
+ <translation type="unfinished">Nome</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Description</source>
+ <translation type="unfinished">Descrizione</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Version</source>
+ <translation type="unfinished">Versione</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Checksum</source>
+ <translation type="unfinished">Somma di controllo</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Binary Path</source>
+ <translation type="unfinished">Percorso binario</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="50"/>
+ <source>Components</source>
+ <translation type="unfinished">Componenti</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="51"/>
+ <source>Directories</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="52"/>
+ <source>Options</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Directory Type</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Path</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Configurations</source>
+ <translation type="obsolete">Configurazioni</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Component</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Group</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Key</source>
+ <translation type="unfinished">Chiave</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Default Value</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="94"/>
+ <source>Value</source>
+ <translation type="unfinished">Valore</translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_CN.ts b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_CN.ts
index 1f068c5..be9bc55 100644
--- a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_CN.ts
+++ b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_CN.ts
@@ -1,3 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS/>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../GnuPGInfoGatheringModule.cpp" line="76"/>
+ <source>GnuPG</source>
+ <translation type="unfinished">GnuPG</translation>
+ </message>
+</context>
+<context>
+ <name>GnupgTab</name>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Name</source>
+ <translation type="unfinished">名称</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Description</source>
+ <translation type="unfinished">含义</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Version</source>
+ <translation type="unfinished">版本</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Checksum</source>
+ <translation type="unfinished">校验和</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Binary Path</source>
+ <translation type="unfinished">二进制文件路径</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="50"/>
+ <source>Components</source>
+ <translation type="unfinished">组件</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="51"/>
+ <source>Directories</source>
+ <translation type="unfinished">目录</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="52"/>
+ <source>Options</source>
+ <translation type="unfinished">选项</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Directory Type</source>
+ <translation type="unfinished">目录类型</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Path</source>
+ <translation type="unfinished">路径</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Component</source>
+ <translation type="unfinished">组件</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Group</source>
+ <translation type="unfinished">组</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Key</source>
+ <translation type="unfinished">键</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Default Value</source>
+ <translation type="unfinished">默认值</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="94"/>
+ <source>Value</source>
+ <translation type="unfinished">值</translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_TW.ts b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_TW.ts
new file mode 100644
index 0000000..71ba20c
--- /dev/null
+++ b/src/m_gpg_info/ts/ModuleGnuPGInfoGathering.zh_TW.ts
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_TW">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../GnuPGInfoGatheringModule.cpp" line="76"/>
+ <source>GnuPG</source>
+ <translation type="unfinished">GnuPG</translation>
+ </message>
+</context>
+<context>
+ <name>GnupgTab</name>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Name</source>
+ <translation type="unfinished">姓名</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Description</source>
+ <translation type="unfinished">描述</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="47"/>
+ <source>Version</source>
+ <translation type="unfinished">版本</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Checksum</source>
+ <translation type="unfinished">校驗和</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="48"/>
+ <source>Binary Path</source>
+ <translation type="unfinished">二進制路徑</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="50"/>
+ <source>Components</source>
+ <translation type="unfinished">成分</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="51"/>
+ <source>Directories</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="52"/>
+ <source>Options</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Directory Type</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="71"/>
+ <source>Path</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Configurations</source>
+ <translation type="obsolete">配置</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Component</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Group</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="92"/>
+ <source>Key</source>
+ <translation type="unfinished">鑰匙</translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="93"/>
+ <source>Default Value</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../GnupgTab.cpp" line="94"/>
+ <source>Value</source>
+ <translation type="unfinished">價值</translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_ver_check/CMakeLists.txt b/src/m_ver_check/CMakeLists.txt
index 69464f8..c780a28 100644
--- a/src/m_ver_check/CMakeLists.txt
+++ b/src/m_ver_check/CMakeLists.txt
@@ -31,7 +31,7 @@ aux_source_directory(. MODULE_SOURCE_FILES)
add_library(mod_ver_check SHARED ${MODULE_SOURCE_FILES})
# install dir
-install(TARGETS mod_ver_check
+install(TARGETS mod_ver_check
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/modules")
# link sdk
@@ -54,12 +54,15 @@ set(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_AUTOUIC_SEARCH_PATHS} ${CMAKE_CURRENT_SOU
# i18n
set(LOCALE_TS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ts)
-set(TS_FILES "${LOCALE_TS_PATH}/ModuleVersionChecking.en_US.ts"
- "${LOCALE_TS_PATH}/ModuleVersionChecking.de_DE.ts"
- "${LOCALE_TS_PATH}/ModuleVersionChecking.fr_FR.ts"
- "${LOCALE_TS_PATH}/ModuleVersionChecking.zh_CN.ts")
+set(TS_FILES
+ "${LOCALE_TS_PATH}/ModuleVersionChecking.en_US.ts"
+ "${LOCALE_TS_PATH}/ModuleVersionChecking.de_DE.ts"
+ "${LOCALE_TS_PATH}/ModuleVersionChecking.fr_FR.ts"
+ "${LOCALE_TS_PATH}/ModuleVersionChecking.it_IT.ts"
+ "${LOCALE_TS_PATH}/ModuleVersionChecking.zh_CN.ts"
+ "${LOCALE_TS_PATH}/ModuleVersionChecking.zh_TW.ts")
qt_add_translations(mod_ver_check
- RESOURCE_PREFIX "/i18n"
- TS_FILES ${TS_FILES}
- SOURCES ${MODULE_SOURCE_FILES}
- INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
+ RESOURCE_PREFIX "/i18n"
+ TS_FILES ${TS_FILES}
+ SOURCES ${MODULE_SOURCE_FILES}
+ INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
diff --git a/src/m_ver_check/VersionCheckingModule.cpp b/src/m_ver_check/VersionCheckingModule.cpp
index 6bb4f45..9185c9f 100644
--- a/src/m_ver_check/VersionCheckingModule.cpp
+++ b/src/m_ver_check/VersionCheckingModule.cpp
@@ -57,16 +57,7 @@ auto GFActiveModule() -> int {
LISTEN("APPLICATION_LOADED");
LISTEN("CHECK_APPLICATION_VERSION");
- // load translations
- QFile f(
- QString(":/i18n/ModuleVersionChecking.%1.qm").arg(GFAppActiveLocale()));
- if (f.exists() && f.open(QIODevice::ReadOnly)) {
- auto f_n = f.fileName().toUtf8();
- FLOG_INFO("version checking module loading, locale: %1, path: %2",
- GFAppActiveLocale(), f_n.data());
- auto b = f.readAll();
- GFAppRegisterTranslator(AllocBufferAndCopy(b), b.size());
- }
+ LOAD_TRANS("ModuleVersionChecking");
GFUIMountEntry(DUP("AboutDialogTabs"),
QMapToMetaDataArray({{"TabTitle", GTrC::tr("Update")}}), 1,
diff --git a/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts b/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts
index 549b674..e9f23e2 100644
--- a/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts
+++ b/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts
@@ -4,7 +4,7 @@
<context>
<name>GTrC</name>
<message>
- <location filename="../VersionCheckingModule.cpp" line="92"/>
+ <location filename="../VersionCheckingModule.cpp" line="72"/>
<source>Update</source>
<translation type="unfinished">Aktualisieren</translation>
</message>
@@ -12,65 +12,65 @@
<context>
<name>UpdateTab</name>
<message>
- <location filename="../UpdateTab.cpp" line="45"/>
+ <location filename="../UpdateTab.cpp" line="46"/>
<source>It is recommended that you always check the version of GpgFrontend and upgrade to the latest version.</source>
<translation type="unfinished">Es wird empfohlen, immer die Version von GpgFrontend zu überprüfen und auf die neueste Version zu aktualisieren.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="48"/>
+ <location filename="../UpdateTab.cpp" line="49"/>
<source>New versions not only represent new features, but also often represent functional and security fixes.</source>
<translation type="unfinished">Neue Versionen beinhalten nicht nur neue Funktionen, sondern stellen oft auch Funktions- und Sicherheitskorrekturen dar.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="54"/>
+ <location filename="../UpdateTab.cpp" line="55"/>
<source>Current Version</source>
<translation type="unfinished">Aktuelle Version</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="55"/>
+ <location filename="../UpdateTab.cpp" line="56"/>
<source>: </source>
<translation type="unfinished">: </translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="131"/>
+ <location filename="../UpdateTab.cpp" line="132"/>
<source>Latest Version From Github</source>
<translation type="unfinished">Neueste Version von Github</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="137"/>
+ <location filename="../UpdateTab.cpp" line="138"/>
<source>The current version is less than the latest version on github.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Die aktuelle Versionsnunmmer ist kleiner als die neueste Version auf github.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="139"/>
- <location filename="../UpdateTab.cpp" line="150"/>
- <location filename="../UpdateTab.cpp" line="162"/>
+ <location filename="../UpdateTab.cpp" line="140"/>
+ <location filename="../UpdateTab.cpp" line="151"/>
+ <location filename="../UpdateTab.cpp" line="163"/>
<source>Please click</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Bitte klicken Sie</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
+ <location filename="../UpdateTab.cpp" line="143"/>
+ <location filename="../UpdateTab.cpp" line="154"/>
+ <location filename="../UpdateTab.cpp" line="166"/>
<source>Here</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Hier</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
+ <location filename="../UpdateTab.cpp" line="143"/>
+ <location filename="../UpdateTab.cpp" line="154"/>
+ <location filename="../UpdateTab.cpp" line="166"/>
<source>to download the latest stable version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">um die neueste stabile Version herunterzuladen.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="148"/>
+ <location filename="../UpdateTab.cpp" line="149"/>
<source>This version has serious problems and has been withdrawn. Please stop using it immediately.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Diese Version hat ernsthafte Probleme und wurde zurückgezogen. Bitte hören Sie sofort auf, sie zu verwenden.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="159"/>
+ <location filename="../UpdateTab.cpp" line="160"/>
<source>This version has not been released yet, it may be a beta version. If you are not a tester and care about version stability, please do not use this version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Diese Version wurde noch nicht veröffentlicht, möglicherweise handelt es sich um eine Beta-Version. Wenn Sie kein Tester sind und Ihnen Stabilität der Version wichtig ist, verwenden Sie diese Version bitte nicht.</translation>
</message>
</context>
</TS>
diff --git a/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts b/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts
index 2795653..98193c7 100644
--- a/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts
+++ b/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts
@@ -4,7 +4,7 @@
<context>
<name>GTrC</name>
<message>
- <location filename="../VersionCheckingModule.cpp" line="92"/>
+ <location filename="../VersionCheckingModule.cpp" line="72"/>
<source>Update</source>
<translation type="unfinished"></translation>
</message>
@@ -12,63 +12,63 @@
<context>
<name>UpdateTab</name>
<message>
- <location filename="../UpdateTab.cpp" line="45"/>
+ <location filename="../UpdateTab.cpp" line="46"/>
<source>It is recommended that you always check the version of GpgFrontend and upgrade to the latest version.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="48"/>
+ <location filename="../UpdateTab.cpp" line="49"/>
<source>New versions not only represent new features, but also often represent functional and security fixes.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="54"/>
+ <location filename="../UpdateTab.cpp" line="55"/>
<source>Current Version</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="55"/>
+ <location filename="../UpdateTab.cpp" line="56"/>
<source>: </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="131"/>
+ <location filename="../UpdateTab.cpp" line="132"/>
<source>Latest Version From Github</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="137"/>
+ <location filename="../UpdateTab.cpp" line="138"/>
<source>The current version is less than the latest version on github.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="139"/>
- <location filename="../UpdateTab.cpp" line="150"/>
- <location filename="../UpdateTab.cpp" line="162"/>
+ <location filename="../UpdateTab.cpp" line="140"/>
+ <location filename="../UpdateTab.cpp" line="151"/>
+ <location filename="../UpdateTab.cpp" line="163"/>
<source>Please click</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
+ <location filename="../UpdateTab.cpp" line="143"/>
+ <location filename="../UpdateTab.cpp" line="154"/>
+ <location filename="../UpdateTab.cpp" line="166"/>
<source>Here</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
+ <location filename="../UpdateTab.cpp" line="143"/>
+ <location filename="../UpdateTab.cpp" line="154"/>
+ <location filename="../UpdateTab.cpp" line="166"/>
<source>to download the latest stable version.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="148"/>
+ <location filename="../UpdateTab.cpp" line="149"/>
<source>This version has serious problems and has been withdrawn. Please stop using it immediately.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="159"/>
+ <location filename="../UpdateTab.cpp" line="160"/>
<source>This version has not been released yet, it may be a beta version. If you are not a tester and care about version stability, please do not use this version.</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts b/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts
index 2795653..fff22ee 100644
--- a/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts
+++ b/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts
@@ -1,76 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS version="2.1">
+<TS version="2.1" language="fr_FR">
<context>
<name>GTrC</name>
<message>
- <location filename="../VersionCheckingModule.cpp" line="92"/>
+ <location filename="../VersionCheckingModule.cpp" line="72"/>
<source>Update</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Mettre à jour</translation>
</message>
</context>
<context>
<name>UpdateTab</name>
<message>
- <location filename="../UpdateTab.cpp" line="45"/>
+ <location filename="../UpdateTab.cpp" line="46"/>
<source>It is recommended that you always check the version of GpgFrontend and upgrade to the latest version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Il est recommandé de toujours vérifier la version de GpgFrontend et de passer à la dernière version.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="48"/>
+ <location filename="../UpdateTab.cpp" line="49"/>
<source>New versions not only represent new features, but also often represent functional and security fixes.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Les nouvelles versions ne représentent pas seulement de nouvelles fonctionnalités, mais représentent également souvent des correctifs fonctionnels et de sécurité.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="54"/>
+ <location filename="../UpdateTab.cpp" line="55"/>
<source>Current Version</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Version actuelle</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="55"/>
+ <location filename="../UpdateTab.cpp" line="56"/>
<source>: </source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">:</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="131"/>
+ <location filename="../UpdateTab.cpp" line="132"/>
<source>Latest Version From Github</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Dernière version de Github</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="137"/>
+ <location filename="../UpdateTab.cpp" line="138"/>
<source>The current version is less than the latest version on github.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">La version actuelle est inférieure à la dernière version sur github.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="139"/>
- <location filename="../UpdateTab.cpp" line="150"/>
- <location filename="../UpdateTab.cpp" line="162"/>
+ <location filename="../UpdateTab.cpp" line="140"/>
+ <location filename="../UpdateTab.cpp" line="151"/>
+ <location filename="../UpdateTab.cpp" line="163"/>
<source>Please click</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Cliquez s&apos;il vous plait</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
+ <location filename="../UpdateTab.cpp" line="143"/>
+ <location filename="../UpdateTab.cpp" line="154"/>
+ <location filename="../UpdateTab.cpp" line="166"/>
<source>Here</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Ici</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
+ <location filename="../UpdateTab.cpp" line="143"/>
+ <location filename="../UpdateTab.cpp" line="154"/>
+ <location filename="../UpdateTab.cpp" line="166"/>
<source>to download the latest stable version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">pour télécharger la dernière version stable.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="148"/>
+ <location filename="../UpdateTab.cpp" line="149"/>
<source>This version has serious problems and has been withdrawn. Please stop using it immediately.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Cette version a de sérieux problèmes et a été retirée. Veuillez cesser de l&apos;utiliser immédiatement.</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="159"/>
+ <location filename="../UpdateTab.cpp" line="160"/>
<source>This version has not been released yet, it may be a beta version. If you are not a tester and care about version stability, please do not use this version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">Cette version n&apos;est pas encore sortie, il s&apos;agit peut-être d&apos;une version bêta. Si vous n&apos;êtes pas un testeur et que vous vous souciez de la stabilité de la version, veuillez ne pas utiliser cette version.</translation>
</message>
</context>
</TS>
diff --git a/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts b/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts
new file mode 100644
index 0000000..06e6d8e
--- /dev/null
+++ b/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../VersionCheckingModule.cpp" line="72"/>
+ <source>Update</source>
+ <translation type="unfinished">Aggiorna</translation>
+ </message>
+</context>
+<context>
+ <name>UpdateTab</name>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="163"/>
+ <source>It is recommended that you always check the version of GpgFrontend and upgrade to the latest version.</source>
+ <translation type="unfinished">Si consiglia di controllare sempre la versione di GpgFrontend e di aggiornare all&apos;ultima versione.</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="166"/>
+ <source>New versions not only represent new features, but also often represent functional and security fixes.</source>
+ <translation type="unfinished">Le nuove versioni non rappresentano solo nuove funzionalità, ma spesso rappresentano anche correzioni funzionali e di sicurezza.</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="172"/>
+ <source>Current Version</source>
+ <translation type="unfinished">Versione corrente</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="173"/>
+ <source>: </source>
+ <translation type="unfinished">: </translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="248"/>
+ <source>Latest Version From Github</source>
+ <translation type="unfinished">Ultima versione da Github</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="254"/>
+ <source>The current version is less than the latest version on github.</source>
+ <translation type="unfinished">La versione corrente è inferiore all&apos;ultima versione su github.</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="256"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="267"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="279"/>
+ <source>Please click</source>
+ <translation type="unfinished">Per favore clicca</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="259"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="270"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="282"/>
+ <source>Here</source>
+ <translation type="unfinished">Qui</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="259"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="270"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="282"/>
+ <source>to download the latest stable version.</source>
+ <translation type="unfinished">per scaricare l&apos;ultima versione stabile.</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="265"/>
+ <source>This version has serious problems and has been withdrawn. Please stop using it immediately.</source>
+ <translation type="unfinished">Questa versione ha seri problemi ed è stata ritirata. Si prega di smettere di usarlo immediatamente.</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="276"/>
+ <source>This version has not been released yet, it may be a beta version. If you are not a tester and care about version stability, please do not use this version.</source>
+ <translation type="unfinished">Questa versione non è ancora stata rilasciata, potrebbe essere una versione beta. Se non sei un tester e ti interessa la stabilità della versione, non utilizzare questa versione.</translation>
+ </message>
+</context>
+</TS>
diff --git a/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts b/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts
index 2795653..89c4c16 100644
--- a/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts
+++ b/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts
@@ -4,73 +4,56 @@
<context>
<name>GTrC</name>
<message>
- <location filename="../VersionCheckingModule.cpp" line="92"/>
+ <location filename="../VersionCheckingModule.cpp" line="72"/>
<source>Update</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">更新</translation>
</message>
</context>
<context>
<name>UpdateTab</name>
<message>
- <location filename="../UpdateTab.cpp" line="45"/>
<source>It is recommended that you always check the version of GpgFrontend and upgrade to the latest version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">建议您经常检查 GpgFrontend 的版本更新。</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="48"/>
<source>New versions not only represent new features, but also often represent functional and security fixes.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">新版本不仅代表新功能,而且通常代表功能和安全修复。</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="54"/>
<source>Current Version</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">当前版本</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="55"/>
<source>: </source>
- <translation type="unfinished"></translation>
+ <translation type="vanished">: </translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="131"/>
<source>Latest Version From Github</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">来自 Github 的最新版本</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="137"/>
<source>The current version is less than the latest version on github.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">当前版本低于github上的最新版本。</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="139"/>
- <location filename="../UpdateTab.cpp" line="150"/>
- <location filename="../UpdateTab.cpp" line="162"/>
<source>Please click</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">请点击</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
<source>Here</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">这里</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="142"/>
- <location filename="../UpdateTab.cpp" line="153"/>
- <location filename="../UpdateTab.cpp" line="165"/>
<source>to download the latest stable version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">来下载最新的稳定版本。</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="148"/>
<source>This version has serious problems and has been withdrawn. Please stop using it immediately.</source>
- <translation type="unfinished"></translation>
+ <translation type="vanished">此版本存在严重问题,已经被召回。请立即停止使用。</translation>
</message>
<message>
- <location filename="../UpdateTab.cpp" line="159"/>
<source>This version has not been released yet, it may be a beta version. If you are not a tester and care about version stability, please do not use this version.</source>
- <translation type="unfinished"></translation>
+ <translation type="unfinished">此版本尚未发布,可能是测试版。如果您不是测试人员并且关心版本稳定性,请不要使用此版本。</translation>
</message>
</context>
</TS>
diff --git a/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts b/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts
new file mode 100644
index 0000000..22246fc
--- /dev/null
+++ b/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1">
+<context>
+ <name>GTrC</name>
+ <message>
+ <location filename="../VersionCheckingModule.cpp" line="72"/>
+ <source>Update</source>
+ <translation type="unfinished">更新</translation>
+ </message>
+</context>
+<context>
+ <name>UpdateTab</name>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="163"/>
+ <source>It is recommended that you always check the version of GpgFrontend and upgrade to the latest version.</source>
+ <translation type="unfinished">建議您經常檢查 GpgFrontend 的版本併升級到最新版本。</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="166"/>
+ <source>New versions not only represent new features, but also often represent functional and security fixes.</source>
+ <translation type="unfinished">新版本不僅代表新功能,而且通常代表功能和安全修復。</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="172"/>
+ <source>Current Version</source>
+ <translation type="unfinished">當前版本</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="173"/>
+ <source>: </source>
+ <translation type="unfinished">: </translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="248"/>
+ <source>Latest Version From Github</source>
+ <translation type="unfinished">來自 Github 的最新版本</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="254"/>
+ <source>The current version is less than the latest version on github.</source>
+ <translation type="unfinished">當前版本低於github上的最新版本。</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="256"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="267"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="279"/>
+ <source>Please click</source>
+ <translation type="unfinished">請點擊</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="259"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="270"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="282"/>
+ <source>Here</source>
+ <translation type="unfinished">這裡</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="259"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="270"/>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="282"/>
+ <source>to download the latest stable version.</source>
+ <translation type="unfinished">下載最新的穩定版本。</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="265"/>
+ <source>This version has serious problems and has been withdrawn. Please stop using it immediately.</source>
+ <translation type="unfinished">此版本存在嚴重問題,已撤回。請立即停止使用。</translation>
+ </message>
+ <message>
+ <location filename="../../../../src/ui/dialog/help/AboutDialog.cpp" line="276"/>
+ <source>This version has not been released yet, it may be a beta version. If you are not a tester and care about version stability, please do not use this version.</source>
+ <translation type="unfinished">此版本尚未發布,可能是測試版。如果您不是測試人員並且關心版本穩定性,請不要使用此版本。</translation>
+ </message>
+</context>
+</TS>