aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-09-28 12:10:17 +0000
committersaturneric <[email protected]>2024-09-28 12:10:17 +0000
commit8d7546ad5bab254d8c84289b6e3986f3e2027a2a (patch)
treeb240857a5b95c7b9f805483204a2e694cc031c1e
parentfix: addressing some of the issues identified (diff)
downloadModules-8d7546ad5bab254d8c84289b6e3986f3e2027a2a.tar.gz
Modules-8d7546ad5bab254d8c84289b6e3986f3e2027a2a.zip
fix: send origin meta text to application
-rw-r--r--include/GFModuleCommonUtils.hpp2
-rw-r--r--src/m_gpg_info/GnuPGInfoGatheringModule.cpp2
-rw-r--r--src/m_ver_check/VersionCheckingModule.cpp2
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);