Change wording of the dust informative message per review by m52go

Moved message text into displaystrings.properties
This commit is contained in:
jmacxx 2020-03-30 21:09:19 -05:00
parent ea8b327f7b
commit f1de079901
No known key found for this signature in database
GPG key ID: 155297BABFE94A1B
2 changed files with 4 additions and 5 deletions

View file

@ -122,7 +122,8 @@ shared.noDateAvailable=No date available
shared.noDetailsAvailable=No details available
shared.notUsedYet=Not used yet
shared.date=Date
shared.sendFundsDetailsWithFee=Sending: {0}\nFrom address: {1}\nTo receiving address: {2}.\nRequired transaction fee is: {3} ({4} satoshis/byte)\nTransaction size: {5} Kb\n\nThe recipient will receive: {6}\n\nAre you sure you want to withdraw this amount?
shared.sendFundsDetailsWithFee=Sending: {0}\nFrom address: {1}\nTo receiving address: {2}.\nRequired mining fee is: {3} ({4} satoshis/byte)\nTransaction size: {5} Kb\n\nThe recipient will receive: {6}\n\nAre you sure you want to withdraw this amount?
shared.sendFundsDetailsDust=Bisq detected that this transaction would create a change output which is below the minimum dust threshold (and not allowed by Bitcoin consensus rules). Instead, this dust ({0} satoshi{1}) will be added to the mining fee.\n\n\n
shared.copyToClipboard=Copy to clipboard
shared.language=Language
shared.country=Country

View file

@ -372,12 +372,10 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
kb,
formatter.formatCoinWithCode(receiverAmount));
if (dust.isPositive()) {
messageText = MessageFormat.format(
"Bisq detected that this transaction would create a change output which is below the minimum dust threshold (and not allowed by Bitcoin consensus rules). Instead, this dust ({0} satoshi) will be added to the transaction fee.\n\n\n",
dust.value)
messageText = Res.get("shared.sendFundsDetailsDust",
dust.value, dust.value > 1 ? "s" : "")
+ messageText;
}
// jmacxx TODO: get review on the above message text, & clarification on proper way to add i18n resource strings
new Popup().headLine(Res.get("funds.withdrawal.confirmWithdrawalRequest"))
.confirmation(messageText)