Skip to content

Commit 9698959

Browse files
luke-jrhebasto
authored andcommitted
GUI: Make messages for copying unsigned PSBTs translatable
1 parent 08b8b28 commit 9698959

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,9 @@ void SendCoinsDialog::presentPSBT(PartiallySignedTransaction& psbtx)
403403
ssTx << psbtx;
404404
GUIUtil::setClipboard(EncodeBase64(ssTx.str()).c_str());
405405
QMessageBox msgBox;
406-
msgBox.setText("Unsigned Transaction");
407-
msgBox.setInformativeText("The PSBT has been copied to the clipboard. You can also save it.");
406+
//: Caption of "PSBT has been copied" messagebox
407+
msgBox.setText(tr("Unsigned Transaction", "PSBT copied"));
408+
msgBox.setInformativeText(tr("The PSBT has been copied to the clipboard. You can also save it."));
408409
msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard);
409410
msgBox.setDefaultButton(QMessageBox::Discard);
410411
switch (msgBox.exec()) {
@@ -432,7 +433,8 @@ void SendCoinsDialog::presentPSBT(PartiallySignedTransaction& psbtx)
432433
std::ofstream out{filename.toLocal8Bit().data(), std::ofstream::out | std::ofstream::binary};
433434
out << ssTx.str();
434435
out.close();
435-
Q_EMIT message(tr("PSBT saved"), "PSBT saved to disk", CClientUIInterface::MSG_INFORMATION);
436+
//: Popup message when a PSBT has been saved to a file
437+
Q_EMIT message(tr("PSBT saved"), tr("PSBT saved to disk"), CClientUIInterface::MSG_INFORMATION);
436438
break;
437439
}
438440
case QMessageBox::Discard:

src/qt/walletmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
548548
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
549549
ssTx << psbtx;
550550
GUIUtil::setClipboard(EncodeBase64(ssTx.str()).c_str());
551-
Q_EMIT message(tr("PSBT copied"), "Copied to clipboard", CClientUIInterface::MSG_INFORMATION);
551+
Q_EMIT message(tr("PSBT copied"), tr("Copied to clipboard", "Fee-bump PSBT saved"), CClientUIInterface::MSG_INFORMATION);
552552
return true;
553553
}
554554

0 commit comments

Comments
 (0)