From 3868ba3a27d594dd2968548fff3db457cbeb0080 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 15 May 2022 21:18:13 +0000 Subject: GUI: Support translating peer network names --- src/qt/guiutil.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/qt') diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 83c78d5c18..96fe091b60 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -673,12 +673,17 @@ QString NetworkToQString(Network net) { switch (net) { case NET_UNROUTABLE: return QObject::tr("Unroutable"); - case NET_IPV4: return "IPv4"; - case NET_IPV6: return "IPv6"; - case NET_ONION: return "Onion"; - case NET_I2P: return "I2P"; - case NET_CJDNS: return "CJDNS"; - case NET_INTERNAL: return QObject::tr("Internal"); + //: Name of IPv4 network in peer info + case NET_IPV4: return QObject::tr("IPv4", "network name"); + //: Name of IPv6 network in peer info + case NET_IPV6: return QObject::tr("IPv6", "network name"); + //: Name of Tor network in peer info + case NET_ONION: return QObject::tr("Onion", "network name"); + //: Name of I2P network in peer info + case NET_I2P: return QObject::tr("I2P", "network name"); + //: Name of CJDNS network in peer info + case NET_CJDNS: return QObject::tr("CJDNS", "network name"); + case NET_INTERNAL: return "Internal"; // should never actually happen case NET_MAX: assert(false); } // no default case, so the compiler can warn about missing cases assert(false); -- cgit v1.2.3