qt: Use plurals where necessary
This commit is contained in:
1 file changed
+2
-2
@@ -98,7 +98,7 @@ void PSBTOperationsDialog::signTransaction()
|
|||||||
} else if (!complete && n_signed < 1) {
|
} else if (!complete && n_signed < 1) {
|
||||||
showStatus(tr("Could not sign any more inputs."), StatusLevel::WARN);
|
showStatus(tr("Could not sign any more inputs."), StatusLevel::WARN);
|
||||||
} else if (!complete) {
|
} else if (!complete) {
|
||||||
showStatus(tr("Signed %1 inputs, but more signatures are still required.").arg(n_signed),
|
showStatus(tr("Signed %n input(s), but more signatures are still required.", "", n_signed),
|
||||||
StatusLevel::INFO);
|
StatusLevel::INFO);
|
||||||
} else {
|
} else {
|
||||||
showStatus(tr("Signed transaction successfully. Transaction is ready to broadcast."),
|
showStatus(tr("Signed transaction successfully. Transaction is ready to broadcast."),
|
||||||
@@ -219,7 +219,7 @@ QString PSBTOperationsDialog::renderTransaction(const PartiallySignedTransaction
|
|||||||
size_t num_unsigned = CountPSBTUnsignedInputs(psbtx);
|
size_t num_unsigned = CountPSBTUnsignedInputs(psbtx);
|
||||||
if (num_unsigned > 0) {
|
if (num_unsigned > 0) {
|
||||||
tx_description.append("<br><br>");
|
tx_description.append("<br><br>");
|
||||||
tx_description.append(tr("Transaction has %1 unsigned inputs.").arg(QString::number(num_unsigned)));
|
tx_description.append(tr("Transaction has %n unsigned input(s).", "", num_unsigned));
|
||||||
}
|
}
|
||||||
|
|
||||||
return tx_description;
|
return tx_description;
|
||||||
|
|||||||
Reference in new issue
Block a user