LOG_PRINT_L0(boost::format("not enough money to transfer, available only %s, sent amount %s")%
print_money(e.available())%
print_money(e.tx_amount()));
fail_msg_writer()<< tr("Not enough money in unlocked balance");
fail_msg_writer()<<sw::tr("Not enough money in unlocked balance");
warn_of_possible_attack=false;
}
catch(consttools::error::not_enough_money&e)
@ -417,7 +417,7 @@ namespace
LOG_PRINT_L0(boost::format("not enough money to transfer, available only %s, sent amount %s")%
print_money(e.available())%
print_money(e.tx_amount()));
fail_msg_writer()<< tr("Not enough money in unlocked balance");
fail_msg_writer()<<sw::tr("Not enough money in unlocked balance");
warn_of_possible_attack=false;
}
catch(consttools::error::tx_not_possible&e)
@ -427,30 +427,30 @@ namespace
print_money(e.tx_amount()+e.fee())%
print_money(e.tx_amount())%
print_money(e.fee()));
fail_msg_writer()<< tr("Failed to find a way to create transactions. This is usually due to dust which is so small it cannot pay for itself in fees, or trying to send more money than the unlocked balance, or not leaving enough for fees");
fail_msg_writer()<<sw::tr("Failed to find a way to create transactions. This is usually due to dust which is so small it cannot pay for itself in fees, or trying to send more money than the unlocked balance, or not leaving enough for fees");
fail_msg_writer()<< tr("There was an error, which could mean the node may be trying to get you to retry creating a transaction, and zero in on which outputs you own. Or it could be a bona fide error. It may be prudent to disconnect from this node, and not try to send a transaction immediately. Alternatively, connect to another node so the original node cannot correlate information.");
fail_msg_writer()<<sw::tr("There was an error, which could mean the node may be trying to get you to retry creating a transaction, and zero in on which outputs you own. Or it could be a bona fide error. It may be prudent to disconnect from this node, and not try to send a transaction immediately. Alternatively, connect to another node so the original node cannot correlate information.");
fail_msg_writer()<<boost::format(tr("File %s likely stores wallet private keys! Use a different file name."))%filename;
fail_msg_writer()<<boost::format(sw::tr("File %s likely stores wallet private keys! Use a different file name."))%filename;
returnfalse;
}
returncommand_line::is_yes(input_line((boost::format(tr("File %s already exists. Are you sure to overwrite it? (Y/Yes/N/No): "))%filename).str()));
returncommand_line::is_yes(input_line((boost::format(sw::tr("File %s already exists. Are you sure to overwrite it? (Y/Yes/N/No): "))%filename).str()));
THROW_WALLET_EXCEPTION_IF(!password_prompter,tools::error::wallet_internal_error,tools::wallet2::tr("no password specified; use --prompt-for-password to prompt for a password"));
returnpassword_prompter(verify?tr("Enter a new password for the wallet"):tr("Wallet password"),verify);
returnpassword_prompter(verify?tools::wallet2::tr("Enter a new password for the wallet"):tools::wallet2::tr("Wallet password"),verify);