diff options
author | Jarol Rodriguez <jarolrod@tutanota.com> | 2021-05-26 20:03:21 -0400 |
---|---|---|
committer | Jarol Rodriguez <jarolrod@tutanota.com> | 2021-09-21 23:33:21 -0400 |
commit | 4832737c7dcc87afea5e1e88945ec311417aa876 (patch) | |
tree | bd64470b00eade9a886f6ae95dc2af2717f5ac21 /src/qt/guiutil.cpp | |
parent | 5c041cb348e667672c8b5ed504dba05adf60783b (diff) |
qt: connection type translator comments
Introduce Qt translator comments for connection types.
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 55e57d425d..cde45e696b 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -671,14 +671,26 @@ QString ConnectionTypeToQString(ConnectionType conn_type, bool prepend_direction { QString prefix; if (prepend_direction) { - prefix = (conn_type == ConnectionType::INBOUND) ? QObject::tr("Inbound") : QObject::tr("Outbound") + " "; + prefix = (conn_type == ConnectionType::INBOUND) ? + /*: An inbound connection from a peer. An inbound connection + is a connection initiated by a peer. */ + QObject::tr("Inbound") : + /*: An outbound connection to a peer. An outbound connection + is a connection initiated by us. */ + QObject::tr("Outbound") + " "; } switch (conn_type) { case ConnectionType::INBOUND: return prefix; + //: Peer connection type that relays all network information. case ConnectionType::OUTBOUND_FULL_RELAY: return prefix + QObject::tr("Full Relay"); + /*: Peer connection type that relays network information about + blocks and not transactions or addresses. */ case ConnectionType::BLOCK_RELAY: return prefix + QObject::tr("Block Relay"); + //: Peer connection type established manually through one of several methods. case ConnectionType::MANUAL: return prefix + QObject::tr("Manual"); + //: Short-lived peer connection type that tests the aliveness of known addresses. case ConnectionType::FEELER: return prefix + QObject::tr("Feeler"); + //: Short-lived peer connection type that solicits known addresses from a peer. case ConnectionType::ADDR_FETCH: return prefix + QObject::tr("Address Fetch"); } // no default case, so the compiler can warn about missing cases assert(false); |