Skip to content

Commit ea83098

Browse files
committed
qt, refactor: add translator comments in TransactionDesc::FormatTxStatus()
1 parent 343f83d commit ea83098

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/qt/transactiondesc.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,20 @@ QString TransactionDesc::FormatTxStatus(const interfaces::WalletTxStatus& status
3636
{
3737
int depth = status.depth_in_main_chain;
3838
if (depth < 0) {
39+
//: This status represents an unconfirmed transaction that conflicts with another
3940
return tr("conflicted with a transaction with %1 confirmations").arg(-depth);
4041
} else if (depth == 0) {
4142
const QString abandoned{status.is_abandoned ? QLatin1String(", ") + tr("abandoned") : QString()};
42-
return tr("0/unconfirmed, %1").arg(inMempool ? tr("in memory pool") : tr("not in memory pool")) + abandoned;
43+
return tr("0/unconfirmed, %1").arg(
44+
//: This status represents an unconfirmed transaction that is in the memory pool
45+
inMempool ? tr("in memory pool") :
46+
//: This status represents an unconfirmed transaction that is not in the memory pool, possibly abandoned
47+
tr("not in memory pool")) + abandoned;
4348
} else if (depth < 6) {
49+
//: This status represents a transaction confirmed in at least one block, but less than 6 blocks
4450
return tr("%1/unconfirmed").arg(depth);
4551
} else {
52+
//: This status represents a transaction confirmed in 6 or more blocks
4653
return tr("%1 confirmations").arg(depth);
4754
}
4855
}

0 commit comments

Comments
 (0)