aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);