fix: send origin meta text to application

This commit is contained in:
saturneric 2024-09-28 14:10:17 +02:00
parent 2be9cf21ae
commit 8d7546ad5b
3 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -78,7 +78,7 @@ auto GFRegisterModule() -> int {
GFUIMountEntry(DUP("AboutDialogTabs"),
QMapToMetaDataArray({
{"TabTitle", GTrC::tr("GnuPG")},
{"TabTitle", GC_TR("GnuPG")},
}),
1, GnupgTabFactory);

View File

@ -56,7 +56,7 @@ auto GFRegisterModule() -> int {
GFUIMountEntry(DUP("AboutDialogTabs"),
QMapToMetaDataArray({
{"TabTitle", GTrC::tr("Update")},
{"TabTitle", GC_TR("Update")},
}),
1, UpdateTabFactory);