Advanced: ReserveProof: Resolve review by selsta

Fixes: 0f67580e
This commit updates qsTr() to avoid breaking previous
translations. Also removes an erroneous whitespace.
This commit is contained in:
reemuru 2022-01-21 01:07:47 -05:00
parent 0f67580e8f
commit 2bf0dd840f
No known key found for this signature in database
GPG key ID: 5EDBFEFFA9E9A7AB
2 changed files with 7 additions and 7 deletions

View file

@ -1073,7 +1073,7 @@ ApplicationWindow {
var good = results[1] === "true"; var good = results[1] === "true";
informationPopup.title = qsTr("Reserve proof check") + translationManager.emptyString; informationPopup.title = qsTr("Reserve proof check") + translationManager.emptyString;
informationPopup.icon = good ? StandardIcon.Information : StandardIcon.Critical; informationPopup.icon = good ? StandardIcon.Information : StandardIcon.Critical;
informationPopup.text = good ? qsTr("Good signature on ") + results[2] + qsTr(" total and ") + results[3] + qsTr(" spent.") : qsTr("Bad signature"); informationPopup.text = good ? qsTr("Good signature on %1 total and %2 spent.").arg(results[2]).arg(results[3]) : qsTr("Bad signature");
} }
else { else {
informationPopup.title = qsTr("Error") + translationManager.emptyString; informationPopup.title = qsTr("Error") + translationManager.emptyString;

View file

@ -60,13 +60,13 @@ Rectangle {
MoneroComponents.Label { MoneroComponents.Label {
id: soloTitleLabel id: soloTitleLabel
fontSize: 24 fontSize: 24
text: qsTr("Prove Transaction / Reserve") + translationManager.emptyString text: qsTr("Prove Transaction") + " / " + qsTr("Reserve") + translationManager.emptyString
} }
MoneroComponents.TextPlain { MoneroComponents.TextPlain {
Layout.fillWidth: true Layout.fillWidth: true
text: qsTr("Generate a proof of your incoming/outgoing payment by supplying the transaction ID, the recipient address and an optional message. \n" + text: qsTr("Generate a proof of your incoming/outgoing payment by supplying the transaction ID, the recipient address and an optional message. \n" +
"For the case of outgoing payments, you can get a 'Spend Proof' that proves the authorship of a transaction. In this case, you don't need to specify the recipient address. \nFor reserve proofs you don't need to specify tx id or address.") + translationManager.emptyString "For the case of outgoing payments, you can get a 'Spend Proof' that proves the authorship of a transaction. In this case, you don't need to specify the recipient address.") + qsTr("\nFor reserve proofs you don't need to specify tx id or address.") + translationManager.emptyString
wrapMode: Text.Wrap wrapMode: Text.Wrap
font.family: MoneroComponents.Style.fontRegular.name font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 14 font.pixelSize: 14
@ -166,12 +166,12 @@ Rectangle {
MoneroComponents.Label { MoneroComponents.Label {
id: soloTitleLabel2 id: soloTitleLabel2
fontSize: 24 fontSize: 24
text: qsTr("Check Transaction / Reserve") + translationManager.emptyString text: qsTr("Check Transaction") + " / " + qsTr("Reserve") + translationManager.emptyString
} }
MoneroComponents.TextPlain { MoneroComponents.TextPlain {
text: qsTr("Verify that funds were paid to an address by supplying the transaction ID, the recipient address, the message used for signing and the signature.\n" + text: qsTr("Verify that funds were paid to an address by supplying the transaction ID, the recipient address, the message used for signing and the signature.\n" +
"For the case with Spend Proof, you don't need to specify the recipient address.\nTransaction is not needed for reserve proof.") + translationManager.emptyString "For the case with Spend Proof, you don't need to specify the recipient address.") + "\n" + qsTr("Transaction is not needed for reserve proof.") + translationManager.emptyString
wrapMode: Text.Wrap wrapMode: Text.Wrap
Layout.fillWidth: true Layout.fillWidth: true
font.family: MoneroComponents.Style.fontRegular.name font.family: MoneroComponents.Style.fontRegular.name
@ -222,7 +222,7 @@ Rectangle {
labelFontSize: 14 labelFontSize: 14
labelText: qsTr("Signature") + translationManager.emptyString labelText: qsTr("Signature") + translationManager.emptyString
placeholderFontSize: 16 placeholderFontSize: 16
placeholderText: qsTr("Paste tx / reserve proof") + translationManager.emptyString; placeholderText: qsTr("Paste tx proof") + " / " + qsTr("reserve proof") + translationManager.emptyString;
readOnly: false readOnly: false
copyButton: true copyButton: true
} }