diff --git a/src/m_email/CMakeLists.txt b/src/m_email/CMakeLists.txt index 4ca0620..4b1a8db 100644 --- a/src/m_email/CMakeLists.txt +++ b/src/m_email/CMakeLists.txt @@ -77,15 +77,15 @@ target_link_libraries(mod_email PRIVATE vmime-static) target_compile_features(mod_email PRIVATE cxx_std_17) # i18n -# set(LOCALE_TS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ts) -# set(TS_FILES "${LOCALE_TS_PATH}/ModuleEMail.en_US.ts" -# "${LOCALE_TS_PATH}/ModuleEMail.de_DE.ts" -# "${LOCALE_TS_PATH}/ModuleEMail.fr_FR.ts" -# "${LOCALE_TS_PATH}/ModuleEMail.it_iT.ts" -# "${LOCALE_TS_PATH}/ModuleEMail.zh_CN.ts" -# "${LOCALE_TS_PATH}/ModuleEMail.zh_TW.ts") -# qt_add_translations(mod_email -# RESOURCE_PREFIX "/i18n" -# TS_FILES ${TS_FILES} -# SOURCES ${INTEGRATED_MODULE_SOURCE} -# INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file +set(LOCALE_TS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ts) +set(TS_FILES "${LOCALE_TS_PATH}/ModuleEMail.en_US.ts" + "${LOCALE_TS_PATH}/ModuleEMail.de_DE.ts" + "${LOCALE_TS_PATH}/ModuleEMail.fr_FR.ts" + "${LOCALE_TS_PATH}/ModuleEMail.it_iT.ts" + "${LOCALE_TS_PATH}/ModuleEMail.zh_CN.ts" + "${LOCALE_TS_PATH}/ModuleEMail.zh_TW.ts") +qt_add_translations(mod_email + RESOURCE_PREFIX "/i18n" + TS_FILES ${TS_FILES} + SOURCES ${INTEGRATED_MODULE_SOURCE} + INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file diff --git a/src/m_email/EMailModule.cpp b/src/m_email/EMailModule.cpp index c1cfb3d..fa08c00 100644 --- a/src/m_email/EMailModule.cpp +++ b/src/m_email/EMailModule.cpp @@ -64,6 +64,8 @@ DEFINE_TRANSLATIONS_STRUCTURE(ModuleEMail); auto GFRegisterModule() -> int { MLogDebug("email module registering..."); + REGISTER_TRANS_READER(); + LISTEN("EMAIL_VERIFY_EML_DATA"); LISTEN("EMAIL_DECRYPT_EML_DATA"); LISTEN("EMAIL_SIGN_EML_DATA"); diff --git a/src/m_email/ts/ModuleEMail.de_DE.ts b/src/m_email/ts/ModuleEMail.de_DE.ts index 15f5b44..059b1fa 100644 --- a/src/m_email/ts/ModuleEMail.de_DE.ts +++ b/src/m_email/ts/ModuleEMail.de_DE.ts @@ -1,4 +1,117 @@ - + + AddressListEditorDialog + + + Address List Editor + + + + + Address List + + + + + Add Address + + + + + Tips: You can double-click the email address in the edit list, or click the email to pop up the option menu. + + + + + Delete Selected Email Address + + + + + EMailMetaDataDialog + + + Message + + + + + From + + + + + To + + + + + + CC + + + + + + BCC + + + + + Subject + + + + + Tips: You can fill in multiple email addresses, please separate them with ";", except for the 'From' field. + + + + + Cancel + + + + + OK + + + + + The 'From' field cannot be empty. + + + + + The 'From' field must contain a valid email address. + + + + + The 'To' field cannot be empty. + + + + + One or more 'To' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'CC' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'BCC' addresses are invalid. Please separate multiple addresses with ";". + + + + + The 'Subject' field cannot be empty. + + + + diff --git a/src/m_email/ts/ModuleEMail.en_US.ts b/src/m_email/ts/ModuleEMail.en_US.ts index c0603da..3ae43b7 100644 --- a/src/m_email/ts/ModuleEMail.en_US.ts +++ b/src/m_email/ts/ModuleEMail.en_US.ts @@ -1,4 +1,117 @@ - + + AddressListEditorDialog + + + Address List Editor + + + + + Address List + + + + + Add Address + + + + + Tips: You can double-click the email address in the edit list, or click the email to pop up the option menu. + + + + + Delete Selected Email Address + + + + + EMailMetaDataDialog + + + Message + + + + + From + + + + + To + + + + + + CC + + + + + + BCC + + + + + Subject + + + + + Tips: You can fill in multiple email addresses, please separate them with ";", except for the 'From' field. + + + + + Cancel + + + + + OK + + + + + The 'From' field cannot be empty. + + + + + The 'From' field must contain a valid email address. + + + + + The 'To' field cannot be empty. + + + + + One or more 'To' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'CC' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'BCC' addresses are invalid. Please separate multiple addresses with ";". + + + + + The 'Subject' field cannot be empty. + + + + diff --git a/src/m_email/ts/ModuleEMail.fr_FR.ts b/src/m_email/ts/ModuleEMail.fr_FR.ts index 63d078d..be08fb0 100644 --- a/src/m_email/ts/ModuleEMail.fr_FR.ts +++ b/src/m_email/ts/ModuleEMail.fr_FR.ts @@ -1,4 +1,117 @@ - + + AddressListEditorDialog + + + Address List Editor + + + + + Address List + + + + + Add Address + + + + + Tips: You can double-click the email address in the edit list, or click the email to pop up the option menu. + + + + + Delete Selected Email Address + + + + + EMailMetaDataDialog + + + Message + + + + + From + + + + + To + + + + + + CC + + + + + + BCC + + + + + Subject + + + + + Tips: You can fill in multiple email addresses, please separate them with ";", except for the 'From' field. + + + + + Cancel + + + + + OK + + + + + The 'From' field cannot be empty. + + + + + The 'From' field must contain a valid email address. + + + + + The 'To' field cannot be empty. + + + + + One or more 'To' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'CC' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'BCC' addresses are invalid. Please separate multiple addresses with ";". + + + + + The 'Subject' field cannot be empty. + + + + diff --git a/src/m_email/ts/ModuleEMail.it_iT.ts b/src/m_email/ts/ModuleEMail.it_iT.ts index 0c07c8a..9d555d2 100644 --- a/src/m_email/ts/ModuleEMail.it_iT.ts +++ b/src/m_email/ts/ModuleEMail.it_iT.ts @@ -1,4 +1,117 @@ - + + AddressListEditorDialog + + + Address List Editor + + + + + Address List + + + + + Add Address + + + + + Tips: You can double-click the email address in the edit list, or click the email to pop up the option menu. + + + + + Delete Selected Email Address + + + + + EMailMetaDataDialog + + + Message + + + + + From + + + + + To + + + + + + CC + + + + + + BCC + + + + + Subject + + + + + Tips: You can fill in multiple email addresses, please separate them with ";", except for the 'From' field. + + + + + Cancel + + + + + OK + + + + + The 'From' field cannot be empty. + + + + + The 'From' field must contain a valid email address. + + + + + The 'To' field cannot be empty. + + + + + One or more 'To' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'CC' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'BCC' addresses are invalid. Please separate multiple addresses with ";". + + + + + The 'Subject' field cannot be empty. + + + + diff --git a/src/m_email/ts/ModuleEMail.zh_CN.ts b/src/m_email/ts/ModuleEMail.zh_CN.ts index c993db4..1332e69 100644 --- a/src/m_email/ts/ModuleEMail.zh_CN.ts +++ b/src/m_email/ts/ModuleEMail.zh_CN.ts @@ -1,4 +1,117 @@ - + + AddressListEditorDialog + + + Address List Editor + + + + + Address List + + + + + Add Address + + + + + Tips: You can double-click the email address in the edit list, or click the email to pop up the option menu. + + + + + Delete Selected Email Address + + + + + EMailMetaDataDialog + + + Message + 邮件消息 + + + + From + 发件人 + + + + To + 收件人 + + + + + CC + 抄送 + + + + + BCC + 密送 + + + + Subject + 主题 + + + + Tips: You can fill in multiple email addresses, please separate them with ";", except for the 'From' field. + + + + + Cancel + 取消 + + + + OK + 确认 + + + + The 'From' field cannot be empty. + + + + + The 'From' field must contain a valid email address. + + + + + The 'To' field cannot be empty. + + + + + One or more 'To' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'CC' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'BCC' addresses are invalid. Please separate multiple addresses with ";". + + + + + The 'Subject' field cannot be empty. + + + + diff --git a/src/m_email/ts/ModuleEMail.zh_TW.ts b/src/m_email/ts/ModuleEMail.zh_TW.ts index 9da77c6..9376153 100644 --- a/src/m_email/ts/ModuleEMail.zh_TW.ts +++ b/src/m_email/ts/ModuleEMail.zh_TW.ts @@ -1,4 +1,117 @@ - + + AddressListEditorDialog + + + Address List Editor + + + + + Address List + + + + + Add Address + + + + + Tips: You can double-click the email address in the edit list, or click the email to pop up the option menu. + + + + + Delete Selected Email Address + + + + + EMailMetaDataDialog + + + Message + + + + + From + + + + + To + + + + + + CC + + + + + + BCC + + + + + Subject + + + + + Tips: You can fill in multiple email addresses, please separate them with ";", except for the 'From' field. + + + + + Cancel + + + + + OK + + + + + The 'From' field cannot be empty. + + + + + The 'From' field must contain a valid email address. + + + + + The 'To' field cannot be empty. + + + + + One or more 'To' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'CC' addresses are invalid. Please separate multiple addresses with ";". + + + + + One or more 'BCC' addresses are invalid. Please separate multiple addresses with ";". + + + + + The 'Subject' field cannot be empty. + + + + diff --git a/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts b/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts index e9a6a4c..aa77685 100644 --- a/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts +++ b/src/m_ver_check/ts/ModuleVersionChecking.de_DE.ts @@ -1,76 +1,115 @@ - - GTrC - - - Update - Aktualisieren - - UpdateTab - - It is recommended that you always check the version of GpgFrontend and upgrade to the latest version. - Es wird empfohlen, immer die Version von GpgFrontend zu überprüfen und auf die neueste Version zu aktualisieren. + + Current Version Information + - - New versions not only represent new features, but also often represent functional and security fixes. - Neue Versionen beinhalten nicht nur neue Funktionen, sondern stellen oft auch Funktions- und Sicherheitskorrekturen dar. - - - + Current Version Aktuelle Version - + : : - + + Upgrade Information + + + + + Release Notes + + + + + Unable to retrieve the latest version information. This may be due to a network issue or the server being unavailable. + + + + + Please check your internet connection or try again later. + + + + + Alternatively, you can visit the + + + + + official download page + + + + + to check for the latest stable version. + + + + Latest Version From Github Neueste Version von Github - - The current version is less than the latest version on github. - Die aktuelle Versionsnunmmer ist kleiner als die neueste Version auf github. + + Your current version is outdated. + - - - Please click - Bitte klicken Sie + + + + Click + - - - Here - Hier + + + + here + + + + + This version has critical issues and has been withdrawn. Please stop using it immediately. + + + + + This is an unreleased version, possibly a beta. If stability is important to you, please avoid using this version. + + + + + The current version's commit hash does not match the official release. This may indicate a modified or unofficial build. + + + + + to verify your installation or download the official version. + + + + + You are using the latest stable version. No action is required. + - - + + to download the latest stable version. um die neueste stabile Version herunterzuladen. - - - This version has serious problems and has been withdrawn. Please stop using it immediately. - Diese Version hat ernsthafte Probleme und wurde zurückgezogen. Bitte hören Sie sofort auf, sie zu verwenden. - - - - 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. - 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. - diff --git a/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts b/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts index 5f2890b..2ede352 100644 --- a/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts +++ b/src/m_ver_check/ts/ModuleVersionChecking.en_US.ts @@ -1,76 +1,115 @@ - - GTrC - - - Update - - - UpdateTab - - It is recommended that you always check the version of GpgFrontend and upgrade to the latest version. + + Current Version Information - - New versions not only represent new features, but also often represent functional and security fixes. - - - - + Current Version - + : - + + Upgrade Information + + + + + Release Notes + + + + + Unable to retrieve the latest version information. This may be due to a network issue or the server being unavailable. + + + + + Please check your internet connection or try again later. + + + + + Alternatively, you can visit the + + + + + official download page + + + + + to check for the latest stable version. + + + + Latest Version From Github - - The current version is less than the latest version on github. + + Your current version is outdated. - - - Please click + + + + Click - - - Here + + + + here + + + + + This version has critical issues and has been withdrawn. Please stop using it immediately. + + + + + This is an unreleased version, possibly a beta. If stability is important to you, please avoid using this version. + + + + + The current version's commit hash does not match the official release. This may indicate a modified or unofficial build. + + + + + to verify your installation or download the official version. + + + + + You are using the latest stable version. No action is required. - - + + to download the latest stable version. - - - This version has serious problems and has been withdrawn. Please stop using it immediately. - - - - - 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. - - diff --git a/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts b/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts index 0b073d1..68877d2 100644 --- a/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts +++ b/src/m_ver_check/ts/ModuleVersionChecking.fr_FR.ts @@ -1,76 +1,115 @@ - - GTrC - - - Update - Mettre à jour - - UpdateTab - - It is recommended that you always check the version of GpgFrontend and upgrade to the latest version. - Il est recommandé de toujours vérifier la version de GpgFrontend et de passer à la dernière version. + + Current Version Information + - - New versions not only represent new features, but also often represent functional and security fixes. - Les nouvelles versions ne représentent pas seulement de nouvelles fonctionnalités, mais représentent également souvent des correctifs fonctionnels et de sécurité. - - - + Current Version Version actuelle - + : : - + + Upgrade Information + + + + + Release Notes + + + + + Unable to retrieve the latest version information. This may be due to a network issue or the server being unavailable. + + + + + Please check your internet connection or try again later. + + + + + Alternatively, you can visit the + + + + + official download page + + + + + to check for the latest stable version. + + + + Latest Version From Github Dernière version de Github - - The current version is less than the latest version on github. - La version actuelle est inférieure à la dernière version sur github. + + Your current version is outdated. + - - - Please click - Cliquez s'il vous plait + + + + Click + - - - Here - Ici + + + + here + + + + + This version has critical issues and has been withdrawn. Please stop using it immediately. + + + + + This is an unreleased version, possibly a beta. If stability is important to you, please avoid using this version. + + + + + The current version's commit hash does not match the official release. This may indicate a modified or unofficial build. + + + + + to verify your installation or download the official version. + + + + + You are using the latest stable version. No action is required. + - - + + to download the latest stable version. pour télécharger la dernière version stable. - - - This version has serious problems and has been withdrawn. Please stop using it immediately. - Cette version a de sérieux problèmes et a été retirée. Veuillez cesser de l'utiliser immédiatement. - - - - 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. - Cette version n'est pas encore sortie, il s'agit peut-être d'une version bêta. Si vous n'êtes pas un testeur et que vous vous souciez de la stabilité de la version, veuillez ne pas utiliser cette version. - diff --git a/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts b/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts index 1879041..2a5482d 100644 --- a/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts +++ b/src/m_ver_check/ts/ModuleVersionChecking.it_IT.ts @@ -1,76 +1,115 @@ - - GTrC - - - Update - Aggiorna - - UpdateTab - - It is recommended that you always check the version of GpgFrontend and upgrade to the latest version. - Si consiglia di controllare sempre la versione di GpgFrontend e di aggiornare all'ultima versione. + + Current Version Information + - - New versions not only represent new features, but also often represent functional and security fixes. - Le nuove versioni non rappresentano solo nuove funzionalità, ma spesso rappresentano anche correzioni funzionali e di sicurezza. - - - + Current Version Versione corrente - + : : - + + Upgrade Information + + + + + Release Notes + + + + + Unable to retrieve the latest version information. This may be due to a network issue or the server being unavailable. + + + + + Please check your internet connection or try again later. + + + + + Alternatively, you can visit the + + + + + official download page + + + + + to check for the latest stable version. + + + + Latest Version From Github Ultima versione da Github - - The current version is less than the latest version on github. - La versione corrente è inferiore all'ultima versione su github. + + Your current version is outdated. + - - - Please click - Per favore clicca + + + + Click + - - - Here - Qui + + + + here + + + + + This version has critical issues and has been withdrawn. Please stop using it immediately. + + + + + This is an unreleased version, possibly a beta. If stability is important to you, please avoid using this version. + + + + + The current version's commit hash does not match the official release. This may indicate a modified or unofficial build. + + + + + to verify your installation or download the official version. + + + + + You are using the latest stable version. No action is required. + - - + + to download the latest stable version. per scaricare l'ultima versione stabile. - - - This version has serious problems and has been withdrawn. Please stop using it immediately. - Questa versione ha seri problemi ed è stata ritirata. Si prega di smettere di usarlo immediatamente. - - - - 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. - 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. - diff --git a/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts b/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts index 2d02588..ce3f2dc 100644 --- a/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts +++ b/src/m_ver_check/ts/ModuleVersionChecking.zh_CN.ts @@ -1,76 +1,115 @@ - - GTrC - - - Update - 更新 - - UpdateTab - - It is recommended that you always check the version of GpgFrontend and upgrade to the latest version. - 建议您经常检查 GpgFrontend 的版本更新。 + + Current Version Information + - - New versions not only represent new features, but also often represent functional and security fixes. - 新版本不仅代表新功能,而且通常代表功能和安全修复。 - - - + Current Version 当前版本 - + : - + + Upgrade Information + + + + + Release Notes + + + + + Unable to retrieve the latest version information. This may be due to a network issue or the server being unavailable. + + + + + Please check your internet connection or try again later. + + + + + Alternatively, you can visit the + + + + + official download page + + + + + to check for the latest stable version. + + + + Latest Version From Github 来自 Github 的最新版本 - - The current version is less than the latest version on github. - 当前版本低于github上的最新版本。 + + Your current version is outdated. + - - - Please click - 请点击 + + + + Click + - - - Here - 这里 + + + + here + + + + + This version has critical issues and has been withdrawn. Please stop using it immediately. + + + + + This is an unreleased version, possibly a beta. If stability is important to you, please avoid using this version. + + + + + The current version's commit hash does not match the official release. This may indicate a modified or unofficial build. + + + + + to verify your installation or download the official version. + + + + + You are using the latest stable version. No action is required. + - - + + to download the latest stable version. 来下载最新的稳定版本。 - - - This version has serious problems and has been withdrawn. Please stop using it immediately. - 此版本存在严重问题,已经被召回。请立即停止使用。 - - - - 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. - 此版本尚未发布,可能是测试版。如果您不是测试人员并且关心版本稳定性,请不要使用此版本。 - diff --git a/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts b/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts index e59955e..c27debf 100644 --- a/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts +++ b/src/m_ver_check/ts/ModuleVersionChecking.zh_TW.ts @@ -1,76 +1,115 @@ - - GTrC - - - Update - 更新 - - UpdateTab - - It is recommended that you always check the version of GpgFrontend and upgrade to the latest version. - 建議您經常檢查 GpgFrontend 的版本併升級到最新版本。 + + Current Version Information + - - New versions not only represent new features, but also often represent functional and security fixes. - 新版本不僅代表新功能,而且通常代表功能和安全修復。 - - - + Current Version 當前版本 - + : : - + + Upgrade Information + + + + + Release Notes + + + + + Unable to retrieve the latest version information. This may be due to a network issue or the server being unavailable. + + + + + Please check your internet connection or try again later. + + + + + Alternatively, you can visit the + + + + + official download page + + + + + to check for the latest stable version. + + + + Latest Version From Github 來自 Github 的最新版本 - - The current version is less than the latest version on github. - 當前版本低於github上的最新版本。 + + Your current version is outdated. + - - - Please click - 請點擊 + + + + Click + - - - Here - 這裡 + + + + here + + + + + This version has critical issues and has been withdrawn. Please stop using it immediately. + + + + + This is an unreleased version, possibly a beta. If stability is important to you, please avoid using this version. + + + + + The current version's commit hash does not match the official release. This may indicate a modified or unofficial build. + + + + + to verify your installation or download the official version. + + + + + You are using the latest stable version. No action is required. + - - + + to download the latest stable version. 下載最新的穩定版本。 - - - This version has serious problems and has been withdrawn. Please stop using it immediately. - 此版本存在嚴重問題,已撤回。請立即停止使用。 - - - - 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. - 此版本尚未發布,可能是測試版。如果您不是測試人員並且關心版本穩定性,請不要使用此版本。 -