Skip to content

Commit 657b33e

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 657b33e

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

src/qt/peertablemodel.h

+25-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,31 @@ 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 of the connected peer. */
83+
tr("Address"),
84+
/*: Title of Peers Table column which describes the type of
85+
peer connection. The "type" describes why the connection exists. */
86+
tr("Type"),
87+
/*: Title of Peers Table column which states the network the peer
88+
connected through. */
89+
tr("Network"),
90+
/*: Title of Peers Table column which indicates the current latency
91+
of the connection with the peer. */
92+
tr("Ping"),
93+
/*: Title of Peers Table column which indicates the total amount of
94+
network information we have sent to the peer. */
95+
tr("Sent"),
96+
/*: Title of Peers Table column which indicates the total amount of
97+
network information we have received from the peer. */
98+
tr("Received"),
99+
/*: Title of Peers Table column which contains the peer's
100+
User Agent string. */
101+
tr("User Agent")};
78102
std::unique_ptr<PeerTablePriv> priv;
79103
QTimer *timer;
80104
};

0 commit comments

Comments
 (0)