aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_key_server_sync/KeyServerSyncModule.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-06-29 18:41:53 +0200
committersaturneric <[email protected]>2026-06-29 18:41:53 +0200
commit75ffe9806e8a966ffe27871d4699c5f7fe0de369 (patch)
tree71864f46999db7f6d88fe34bcac66931aa046c52 /src/m_key_server_sync/KeyServerSyncModule.cpp
parentchore(email): bump `EMailModule` version to 1.2.3 (diff)
downloadmodules-75ffe9806e8a966ffe27871d4699c5f7fe0de369.tar.gz
modules-75ffe9806e8a966ffe27871d4699c5f7fe0de369.zip
chore(key-server-sync): register translations and bump version
* Add translation structure and register the translation reader so module strings are available at runtime. * Increment module version to 1.2.1 to reflect the change. * Register translations during module activation to ensure localized resources are loaded when the module becomes active.
Diffstat (limited to 'src/m_key_server_sync/KeyServerSyncModule.cpp')
-rw-r--r--src/m_key_server_sync/KeyServerSyncModule.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/m_key_server_sync/KeyServerSyncModule.cpp b/src/m_key_server_sync/KeyServerSyncModule.cpp
index 1a12592..ed6a28c 100644
--- a/src/m_key_server_sync/KeyServerSyncModule.cpp
+++ b/src/m_key_server_sync/KeyServerSyncModule.cpp
@@ -38,10 +38,12 @@
#include "VKSInterface.h"
GF_MODULE_API_DEFINE_V2("com.bktus.gpgfrontend.module.key_server_sync",
- "KeyServerSync", "1.2.0",
+ "KeyServerSync", "1.2.1",
"Sync Information From Trusted Key Server.",
"Saturneric")
+DEFINE_TRANSLATIONS_STRUCTURE(ModuleKeyServerSync);
+
auto GFRegisterModule() -> int {
LOG_DEBUG("key server sync module registering");
@@ -49,6 +51,8 @@ auto GFRegisterModule() -> int {
}
auto GFActiveModule() -> int {
+ REGISTER_TRANS_READER();
+
LISTEN("REQUEST_GET_PUBLIC_KEY_BY_FINGERPRINT");
LISTEN("REQUEST_GET_PUBLIC_KEY_BY_KEY_ID");
LISTEN("REQUEST_UPLOAD_PUBLIC_KEY");