diff options
| author | saturneric <[email protected]> | 2026-10-21 22:20:23 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-10-21 22:20:23 +0200 |
| commit | aff6b0d49335db2b6a8ef3c96bdb4e252a64f662 (patch) | |
| tree | 2c87b5301b25b57b70ebb70b19a686c674dcee0c /src | |
| parent | fix(i18n): avoid lupdate namespace parsing warnings (diff) | |
| download | modules-aff6b0d49335db2b6a8ef3c96bdb4e252a64f662.tar.gz modules-aff6b0d49335db2b6a8ef3c96bdb4e252a64f662.zip | |
fix(i18n): clarify command metadata for lupdate
- add an unqualified metadata alias to avoid lupdate namespace warnings
- use the alias for command metadata declarations in key server sync
Diffstat (limited to 'src')
| -rw-r--r-- | src/m_key_server_sync/KeyServerSyncModule.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/m_key_server_sync/KeyServerSyncModule.cpp b/src/m_key_server_sync/KeyServerSyncModule.cpp index 2e3af37..db96622 100644 --- a/src/m_key_server_sync/KeyServerSyncModule.cpp +++ b/src/m_key_server_sync/KeyServerSyncModule.cpp @@ -50,6 +50,10 @@ namespace { using Severity = gf::cmd::host::AppMessage::Severity; +/// Spelled unqualified: lupdate misreads `gf::cmd::Meta kMeta{` in a class +/// body and warns about an unknown namespace. +using CommandMeta = gf::cmd::Meta; + /// A result for the user, shown by the Host from its own window: the module /// has no business holding one of the Host's windows to parent a box to. void Tell(Severity severity, const QString& title, const QString& text) { @@ -514,7 +518,7 @@ auto KeysOf(const KeyArgs& a) -> QList<BatchKey> { } struct PublishKey { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".publish_key", GTrC::Noop("Publish Public Key to Key Server"), GTrC::Noop("Upload the public key to the key server used for syncing"), @@ -526,7 +530,7 @@ struct PublishKey { }; struct RefreshKey { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".refresh_key", GTrC::Noop("Refresh Public Key From Key Server"), GTrC::Noop( @@ -539,7 +543,7 @@ struct RefreshKey { }; struct CheckPublication { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".check_publication", GTrC::Noop("Check Publication Status"), GTrC::Noop("Ask the key server whether it has this public key"), @@ -551,7 +555,7 @@ struct CheckPublication { }; struct SearchKey { - static constexpr gf::cmd::Meta kMeta{ + static constexpr CommandMeta kMeta{ GF_MODULE_ID ".search_key", GTrC::Noop("Key Server"), GTrC::Noop("Import public keys from a trusted key server."), |
