aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-20 11:17:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-20 11:17:28 +0000
commit360f72fa90cf499416c0e5b3fd56c78aa9c1d8d0 (patch)
tree132963b00253cf736a61019112f3d07bb8760429 /src/simplewallet
parentMerge pull request #675 (diff)
downloadmonero-360f72fa90cf499416c0e5b3fd56c78aa9c1d8d0.tar.xz
simplewallet: wording change for single tx confirmation
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index f4dcb6a35..55bddcddd 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1814,9 +1814,18 @@ bool simple_wallet::transfer_main(bool new_algorithm, const std::vector<std::str
total_fee += ptx_vector[n].fee;
}
- std::string prompt_str = (boost::format(tr("Your transaction needs to be split into %llu transactions. "
- "This will result in a transaction fee being applied to each transaction, for a total fee of %s. Is this okay? (Y/Yes/N/No)")) %
- ((unsigned long long)ptx_vector.size()) % print_money(total_fee)).str();
+ std::string prompt_str;
+ if (ptx_vector.size() > 1)
+ {
+ prompt_str = (boost::format(tr("Your transaction needs to be split into %llu transactions. "
+ "This will result in a transaction fee being applied to each transaction, for a total fee of %s. Is this okay? (Y/Yes/N/No)")) %
+ ((unsigned long long)ptx_vector.size()) % print_money(total_fee)).str();
+ }
+ else
+ {
+ prompt_str = (boost::format(tr("The transaction fee is %s. Is this okay? (Y/Yes/N/No)")) %
+ print_money(total_fee)).str();
+ }
std::string accepted = command_line::input_line(prompt_str);
if (accepted != "Y" && accepted != "y" && accepted != "Yes" && accepted != "yes")
{