aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2022-05-15 21:18:13 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-03-31 12:21:23 +0100
commit3868ba3a27d594dd2968548fff3db457cbeb0080 (patch)
treef63f59dafa2c58c4656b99f19af7f482ae86c0e9 /src/qt
parentf1f981119884389f1f355bc11847a73812a2836e (diff)
GUI: Support translating peer network names
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/guiutil.cpp17
1 files changed, 11 insertions, 6 deletions
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);