3737#include < QDateTime>
3838#include < QFont>
3939#include < QKeyEvent>
40+ #include < QLatin1String>
4041#include < QMenu>
4142#include < QMessageBox>
4243#include < QScreen>
@@ -53,6 +54,9 @@ const int INITIAL_TRAFFIC_GRAPH_MINS = 30;
5354const QSize FONT_RANGE (4 , 40 );
5455const char fontSizeSettingsKey[] = " consoleFontSize" ;
5556
57+ const QLatin1String COLON_SPACE{" : " };
58+ const QLatin1String SPACE{" " };
59+
5660const struct {
5761 const char *url;
5862 const char *source;
@@ -463,15 +467,17 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
463467
464468 constexpr QChar nonbreaking_hyphen (8209 );
465469 const std::vector<QString> CONNECTION_TYPE_DOC{
466- tr (" Inbound: initiated by peer" ),
467- tr (" Outbound Full Relay: default" ),
468- tr (" Outbound Block Relay: does not relay transactions or addresses" ),
469- tr (" Outbound Manual: added using RPC %1 or %2/%3 configuration options" )
470+ // : The connection direction (Inbound/Outbound) is also used in ConnectionTypeToQString() and PeerTableModel::data().
471+ // : The connection types (Full Relay, Block Relay, Manual, Feeler, Address Fetch) are also used in ConnectionTypeToQString().
472+ tr (" Inbound" ) + COLON_SPACE + tr (" initiated by peer" ),
473+ tr (" Outbound" ) + SPACE + tr (" Full Relay" ) + COLON_SPACE + tr (" default" ),
474+ tr (" Outbound" ) + SPACE + tr (" Block Relay" ) + COLON_SPACE + tr (" does not relay transactions or addresses" ),
475+ tr (" Outbound" ) + SPACE + tr (" Manual" ) + COLON_SPACE + tr (" added using RPC %1 or %2/%3 configuration options" )
470476 .arg (" addnode" )
471477 .arg (QString (nonbreaking_hyphen) + " addnode" )
472478 .arg (QString (nonbreaking_hyphen) + " connect" ),
473- tr (" Outbound Feeler: short-lived, for testing addresses" ),
474- tr (" Outbound Address Fetch: short-lived, for soliciting addresses" )};
479+ tr (" Outbound" ) + SPACE + tr ( " Feeler" ) + COLON_SPACE + tr ( " short-lived, for testing addresses" ),
480+ tr (" Outbound" ) + SPACE + tr ( " Address Fetch" ) + COLON_SPACE + tr ( " short-lived, for soliciting addresses" )};
475481 const QString list{" <ul><li>" + Join (CONNECTION_TYPE_DOC, QString (" </li><li>" )) + " </li></ul>" };
476482 ui->peerConnectionTypeLabel ->setToolTip (ui->peerConnectionTypeLabel ->toolTip ().arg (list));
477483 const QString hb_list{" <ul><li>\" "
0 commit comments