diff options
| author | saturneric <[email protected]> | 2026-09-27 23:33:10 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-27 23:33:10 +0200 |
| commit | 99e163e1ea7b77cebb00fe6ae7e130baf9b16d67 (patch) | |
| tree | dbc38364d82cd1538a7a4590d98dff9aa4c1b9c1 /src/m_gpg_info | |
| parent | i18n(update): refresh update translations (diff) | |
| download | modules-99e163e1ea7b77cebb00fe6ae7e130baf9b16d67.tar.gz modules-99e163e1ea7b77cebb00fe6ae7e130baf9b16d67.zip | |
refactor(i18n): migrate modules to shared translation helper
- replace direct GTrC translation calls with GTrC::tr
- mark deferred UI and command strings with GTrC::Noop
- update email, IM, key server, PGP, GnuPG, and update modules
- remove redundant local translation helper functions
- apply related formatting and pointer declaration cleanup
Diffstat (limited to 'src/m_gpg_info')
| -rw-r--r-- | src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index 4ea4bc9..454102f 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -47,6 +47,7 @@ #include "GFModule.h" #include "GFModuleIdentity.h" +#include "GFModuleTr.h" #include "GFSDKHostCommands.hpp" #include "GnupgTab.h" #include "GpgInfo.h" @@ -88,8 +89,8 @@ class GnupgInfoWidget : public QWidget, public gf::ui::DialogWidget { /// script's; it only opens the module's own dialog. struct ShowGnupgInfo { static constexpr gf::cmd::Meta kMeta{GF_MODULE_ID ".show_gnupg_info", - GC_TR("GnuPG"), - GC_TR("Information about GnuPG"), + GTrC::Noop("GnuPG"), + GTrC::Noop("Information about GnuPG"), "", 0, gf::cmd::kNeedsGuiThread}; @@ -110,7 +111,7 @@ auto DoShowGnupgInfo(const gf::cmd::CommandContext & /*ctx*/, auto OnActivate() -> GFResult { LOG_INFO("gnupg info gathering module registering"); const bool ok = gf::ui::RegisterNativeWidget<GnupgInfoWidget>( - "info", {GC_TR("GnuPG"), "", "", "", ":/icons/key.png", 500, 600}, + "info", {GTrC::Noop("GnuPG"), "", "", "", ":/icons/key.png", 500, 600}, [](const QCborMap & /*args*/) { return new GnupgInfoWidget(); }); return ok ? GFResult::Ok() : GFResult::Fail("the GnuPG information widget was not registered"); |
