Skip to content

Commit b405f19

Browse files
committed
qt: add translator comments for peers table columns
Adds Qt Translator Comments to each Peers Table column to aid translators by providing context.
1 parent 73a91c6 commit b405f19

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

src/qt/peertablemodel.h

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,33 @@ public Q_SLOTS:
7474

7575
private:
7676
interfaces::Node& m_node;
77-
const QStringList columns{tr("Peer"), tr("Address"), tr("Type"), tr("Network"), tr("Ping"), tr("Sent"), tr("Received"), tr("User Agent")};
77+
const QStringList columns{
78+
/*: Title of Peers Table column which contains a
79+
unique number used to identify a connection. */
80+
tr("Peer"),
81+
/*: Title of Peers Table column which contains the
82+
IP/Onion/I2P address we used to connect to the peer. */
83+
tr("Address"),
84+
/*: Title of Peers Table column which contains a value for
85+
the type of connection we have established with the peer.
86+
Type is a term denoting what the connection is for. */
87+
tr("Type"),
88+
/*: Title of Peers Table column which contains a value for
89+
the network the peer resides on. */
90+
tr("Network"),
91+
/*: Title of Peers Table column which contains a value for
92+
the latency of the connection established with the peer. */
93+
tr("Ping"),
94+
/*: Title of Peers Table column which contains a value for
95+
the total amount of bytes we have sent to the peer. */
96+
tr("Sent"),
97+
/*: Title of Peers Table column which contains a value for
98+
the total amount of bytes we have received from the peer. */
99+
tr("Received"),
100+
/*: Title of Peers Table column which contains the peer's
101+
User Agent string. A peer can configure this value to
102+
allow itself to be identifiable. */
103+
tr("User Agent")};
78104
std::unique_ptr<PeerTablePriv> priv;
79105
QTimer *timer;
80106
};

0 commit comments

Comments
 (0)