From 8d7546ad5bab254d8c84289b6e3986f3e2027a2a Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 28 Sep 2024 14:10:17 +0200 Subject: [PATCH] fix: send origin meta text to application --- include/GFModuleCommonUtils.hpp | 2 ++ src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 2 +- src/m_ver_check/VersionCheckingModule.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/GFModuleCommonUtils.hpp b/include/GFModuleCommonUtils.hpp index 7e1f654..af2ba4d 100644 --- a/include/GFModuleCommonUtils.hpp +++ b/include/GFModuleCommonUtils.hpp @@ -66,6 +66,8 @@ #define REGISTER_TRANS_READER() \ GFAppRegisterTranslatorReader(GFGetModuleID(), TranslatorDataReader) +#define GC_TR(text) QT_TRANSLATE_NOOP("GTrC", text) + #define CONCATENATE_DETAIL(x, y) x##y #define CONCATENATE(x, y) CONCATENATE_DETAIL(x, y) #define GTRC_TR(name, src) CONCATENATE(GTrC_, name)::tr(src) diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index 7c6d70c..08611fe 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -78,7 +78,7 @@ auto GFRegisterModule() -> int { GFUIMountEntry(DUP("AboutDialogTabs"), QMapToMetaDataArray({ - {"TabTitle", GTrC::tr("GnuPG")}, + {"TabTitle", GC_TR("GnuPG")}, }), 1, GnupgTabFactory); diff --git a/src/m_ver_check/VersionCheckingModule.cpp b/src/m_ver_check/VersionCheckingModule.cpp index 5e6fef6..e9daf59 100644 --- a/src/m_ver_check/VersionCheckingModule.cpp +++ b/src/m_ver_check/VersionCheckingModule.cpp @@ -56,7 +56,7 @@ auto GFRegisterModule() -> int { GFUIMountEntry(DUP("AboutDialogTabs"), QMapToMetaDataArray({ - {"TabTitle", GTrC::tr("Update")}, + {"TabTitle", GC_TR("Update")}, }), 1, UpdateTabFactory);