diff options
| author | reemuru <rimuru@hiahatf.org> | 2022-01-21 01:07:47 -0500 |
|---|---|---|
| committer | reemuru <rimuru@hiahatf.org> | 2022-01-21 01:21:17 -0500 |
| commit | 2bf0dd840f907b406271863540c8efe002b2cdc3 (patch) | |
| tree | 103735665d6fc2cbe1844856840785acb4ad4ff2 | |
| parent | 0f67580e8fc1d98a67298ecc1d70ef926521657a (diff) | |
| download | monzero-gui-2bf0dd840f907b406271863540c8efe002b2cdc3.tar.gz monzero-gui-2bf0dd840f907b406271863540c8efe002b2cdc3.tar.xz monzero-gui-2bf0dd840f907b406271863540c8efe002b2cdc3.zip | |
Advanced: ReserveProof: Resolve review by selsta
Fixes: 0f67580e
This commit updates qsTr() to avoid breaking previous
translations. Also removes an erroneous whitespace.
| -rw-r--r-- | main.qml | 2 | ||||
| -rw-r--r-- | pages/TxKey.qml | 12 |
2 files changed, 7 insertions, 7 deletions
@@ -1073,7 +1073,7 @@ ApplicationWindow { var good = results[1] === "true"; informationPopup.title = qsTr("Reserve proof check") + translationManager.emptyString; 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 { informationPopup.title = qsTr("Error") + translationManager.emptyString; diff --git a/pages/TxKey.qml b/pages/TxKey.qml index e9d6abc8..7443dff5 100644 --- a/pages/TxKey.qml +++ b/pages/TxKey.qml @@ -60,13 +60,13 @@ Rectangle { MoneroComponents.Label { id: soloTitleLabel fontSize: 24 - text: qsTr("Prove Transaction / Reserve") + translationManager.emptyString + text: qsTr("Prove Transaction") + " / " + qsTr("Reserve") + translationManager.emptyString } MoneroComponents.TextPlain { 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" + - "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 font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 @@ -166,12 +166,12 @@ Rectangle { MoneroComponents.Label { id: soloTitleLabel2 fontSize: 24 - text: qsTr("Check Transaction / Reserve") + translationManager.emptyString + text: qsTr("Check Transaction") + " / " + qsTr("Reserve") + translationManager.emptyString } 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" + - "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 Layout.fillWidth: true font.family: MoneroComponents.Style.fontRegular.name @@ -222,7 +222,7 @@ Rectangle { labelFontSize: 14 labelText: qsTr("Signature") + translationManager.emptyString placeholderFontSize: 16 - placeholderText: qsTr("Paste tx / reserve proof") + translationManager.emptyString; + placeholderText: qsTr("Paste tx proof") + " / " + qsTr("reserve proof") + translationManager.emptyString; readOnly: false copyButton: true } @@ -255,7 +255,7 @@ Rectangle { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: 14 color: MoneroComponents.Style.defaultFontColor - } + } } } |
