mirror of
https://github.com/monero-project/monero.git
synced 2025-08-10 13:30:16 -04:00
Fixed typos and wording tweaks
This commit is contained in:
parent
a529f0a6c9
commit
a85dbb3f2f
10 changed files with 94 additions and 94 deletions
|
@ -60,28 +60,28 @@ public:
|
|||
)
|
||||
: m_server{core.get(), p2p.get()}, m_description{description}
|
||||
{
|
||||
MGINFO("Initializing " << m_description << " rpc server...");
|
||||
MGINFO("Initializing " << m_description << " RPC server...");
|
||||
|
||||
if (!m_server.init(vm, restricted, testnet, port))
|
||||
{
|
||||
throw std::runtime_error("Failed to initialize " + m_description + " rpc server.");
|
||||
throw std::runtime_error("Failed to initialize " + m_description + " RPC server.");
|
||||
}
|
||||
MGINFO(m_description << " rpc server initialized OK on port: " << m_server.get_binded_port());
|
||||
MGINFO(m_description << " RPC server initialized OK on port: " << m_server.get_binded_port());
|
||||
}
|
||||
|
||||
void run()
|
||||
{
|
||||
MGINFO("Starting " << m_description << " rpc server...");
|
||||
MGINFO("Starting " << m_description << " RPC server...");
|
||||
if (!m_server.run(2, false))
|
||||
{
|
||||
throw std::runtime_error("Failed to start " + m_description + " rpc server.");
|
||||
throw std::runtime_error("Failed to start " + m_description + " RPC server.");
|
||||
}
|
||||
MGINFO(m_description << " rpc server started ok");
|
||||
MGINFO(m_description << " RPC server started ok");
|
||||
}
|
||||
|
||||
void stop()
|
||||
{
|
||||
MGINFO("Stopping " << m_description << " rpc server...");
|
||||
MGINFO("Stopping " << m_description << " RPC server...");
|
||||
m_server.send_stop_signal();
|
||||
m_server.timed_wait_server_stop(5000);
|
||||
}
|
||||
|
@ -93,11 +93,11 @@ public:
|
|||
|
||||
~t_rpc()
|
||||
{
|
||||
MGINFO("Deinitializing " << m_description << " rpc server...");
|
||||
MGINFO("Deinitializing " << m_description << " RPC server...");
|
||||
try {
|
||||
m_server.deinit();
|
||||
} catch (...) {
|
||||
MERROR("Failed to deinitialize " << m_description << " rpc server...");
|
||||
MERROR("Failed to deinitialize " << m_description << " RPC server...");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
namespace cryptonote
|
||||
{
|
||||
rpc_args::descriptors::descriptors()
|
||||
: rpc_bind_ip({"rpc-bind-ip", rpc_args::tr("Specify ip to bind rpc server"), "127.0.0.1"})
|
||||
: rpc_bind_ip({"rpc-bind-ip", rpc_args::tr("Specify IP to bind RPC server"), "127.0.0.1"})
|
||||
, rpc_login({"rpc-login", rpc_args::tr("Specify username[:password] required for RPC server"), "", true})
|
||||
, confirm_external_bind({"confirm-external-bind", rpc_args::tr("Confirm rpc-bind-ip value is NOT a loopback (local) IP")})
|
||||
, rpc_access_control_origins({"rpc-access-control-origins", rpc_args::tr("Specify a comma separated list of origins to allow cross origin resource sharing"), ""})
|
||||
|
|
|
@ -158,7 +158,7 @@ namespace
|
|||
|
||||
boost::optional<tools::password_container> default_password_prompter(bool verify)
|
||||
{
|
||||
return password_prompter(verify ? tr("Enter new wallet password") : tr("Wallet password"), verify);
|
||||
return password_prompter(verify ? tr("Enter a new password for the wallet") : tr("Wallet password"), verify);
|
||||
}
|
||||
|
||||
inline std::string interpret_rpc_response(bool ok, const std::string& status)
|
||||
|
@ -1274,7 +1274,7 @@ bool simple_wallet::set_default_priority(const std::vector<std::string> &args/*
|
|||
priority = boost::lexical_cast<int>(args[1]);
|
||||
if (priority < 1 || priority > 4)
|
||||
{
|
||||
fail_msg_writer() << tr("priority must be 0, 1, 2, 3,or 4");
|
||||
fail_msg_writer() << tr("priority must be 0, 1, 2, 3, or 4");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -1289,7 +1289,7 @@ bool simple_wallet::set_default_priority(const std::vector<std::string> &args/*
|
|||
}
|
||||
catch(const boost::bad_lexical_cast &)
|
||||
{
|
||||
fail_msg_writer() << tr("priority must be 0, 1, 2 3,or 4");
|
||||
fail_msg_writer() << tr("priority must be 0, 1, 2, 3, or 4");
|
||||
return true;
|
||||
}
|
||||
catch(...)
|
||||
|
@ -1544,14 +1544,14 @@ simple_wallet::simple_wallet()
|
|||
m_cmd_binder.set_handler("transfer_original",
|
||||
boost::bind(&simple_wallet::transfer, this, _1),
|
||||
tr("transfer_original [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <address> <amount> [<payment_id>]"),
|
||||
tr("Transfer <amount> to <address> using an older transaction building algorithm. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the fee of the transaction. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||
tr("Transfer <amount> to <address> using an older transaction building algorithm. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||
m_cmd_binder.set_handler("transfer", boost::bind(&simple_wallet::transfer_new, this, _1),
|
||||
tr("transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <address> <amount> [<payment_id>]"),
|
||||
tr("Transfer <amount> to <address>. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the fee of the transaction. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||
tr("Transfer <amount> to <address>. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||
m_cmd_binder.set_handler("locked_transfer",
|
||||
boost::bind(&simple_wallet::locked_transfer, this, _1),
|
||||
tr("locked_transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] <addr> <amount> <lockblocks> [<payment_id>]"),
|
||||
tr("Transfer <amount> to <address> and lock it for <lockblocks> (max. 1000000). If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the fee of the transaction. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||
tr("Transfer <amount> to <address> and lock it for <lockblocks> (max. 1000000). If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||
m_cmd_binder.set_handler("sweep_unmixable",
|
||||
boost::bind(&simple_wallet::sweep_unmixable, this, _1),
|
||||
tr("Send all unmixable outputs to yourself with ring_size 1"));
|
||||
|
@ -2611,12 +2611,12 @@ std::string simple_wallet::get_mnemonic_language()
|
|||
if (!((language_number >= 0) && (static_cast<unsigned int>(language_number) < language_list.size())))
|
||||
{
|
||||
language_number = -1;
|
||||
fail_msg_writer() << tr("invalid language choice passed. Please try again.\n");
|
||||
fail_msg_writer() << tr("invalid language choice entered. Please try again.\n");
|
||||
}
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
fail_msg_writer() << tr("invalid language choice passed. Please try again.\n");
|
||||
fail_msg_writer() << tr("invalid language choice entered. Please try again.\n");
|
||||
}
|
||||
}
|
||||
return language_list[language_number];
|
||||
|
@ -3366,7 +3366,7 @@ bool simple_wallet::show_payments(const std::vector<std::string> &args)
|
|||
{
|
||||
if(args.empty())
|
||||
{
|
||||
fail_msg_writer() << tr("expected at least one payment_id");
|
||||
fail_msg_writer() << tr("expected at least one payment ID");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -4515,7 +4515,7 @@ bool simple_wallet::sweep_below(const std::vector<std::string> &args_)
|
|||
uint64_t below = 0;
|
||||
if (args_.size() < 1)
|
||||
{
|
||||
fail_msg_writer() << tr("missing amount threshold");
|
||||
fail_msg_writer() << tr("missing threshold amount");
|
||||
return true;
|
||||
}
|
||||
if (!cryptonote::parse_amount(below, args_[0]))
|
||||
|
|
|
@ -74,7 +74,7 @@ bool AddressBookImpl::addRow(const std::string &dst_addr , const std::string &pa
|
|||
|
||||
// integrated + long payment id provided
|
||||
if(has_long_pid && info.has_payment_id) {
|
||||
m_errorString = tr("Integrated address and long payment id can't be used at the same time");
|
||||
m_errorString = tr("Integrated address and long payment ID can't be used at the same time");
|
||||
m_errorCode = Invalid_Payment_Id;
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -611,7 +611,7 @@ bool WalletImpl::close(bool store)
|
|||
if (status() != Status_Critical)
|
||||
m_wallet->store();
|
||||
else
|
||||
LOG_ERROR("Status_Critical - not storing wallet");
|
||||
LOG_ERROR("Status_Critical - not saving wallet");
|
||||
LOG_PRINT_L1("wallet::store done");
|
||||
}
|
||||
LOG_PRINT_L1("Calling wallet::stop...");
|
||||
|
@ -717,7 +717,7 @@ bool WalletImpl::store(const std::string &path)
|
|||
m_wallet->store_to(path, m_password);
|
||||
}
|
||||
} catch (const std::exception &e) {
|
||||
LOG_ERROR("Error storing wallet: " << e.what());
|
||||
LOG_ERROR("Error saving wallet: " << e.what());
|
||||
m_status = Status_Error;
|
||||
m_errorString = e.what();
|
||||
}
|
||||
|
|
|
@ -222,7 +222,7 @@ boost::optional<tools::password_container> get_password(const boost::program_opt
|
|||
|
||||
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"));
|
||||
|
||||
return password_prompter(verify ? tr("Enter new wallet password") : tr("Wallet password"), verify);
|
||||
return password_prompter(verify ? tr("Enter a new password for the wallet") : tr("Wallet password"), verify);
|
||||
}
|
||||
|
||||
std::unique_ptr<tools::wallet2> generate_from_json(const std::string& json_file, const boost::program_options::variables_map& vm, const options& opts, const std::function<boost::optional<tools::password_container>(const char *, bool)> &password_prompter)
|
||||
|
|
|
@ -2847,12 +2847,12 @@ int main(int argc, char** argv) {
|
|||
// if we ^C during potentially length load/refresh, there's no server loop yet
|
||||
if (quit)
|
||||
{
|
||||
MINFO(tools::wallet_rpc_server::tr("Storing wallet..."));
|
||||
MINFO(tools::wallet_rpc_server::tr("Saving wallet..."));
|
||||
wal->store();
|
||||
MINFO(tools::wallet_rpc_server::tr("Stored ok"));
|
||||
MINFO(tools::wallet_rpc_server::tr("Successfully saved"));
|
||||
return 1;
|
||||
}
|
||||
MINFO(tools::wallet_rpc_server::tr("Loaded ok"));
|
||||
MINFO(tools::wallet_rpc_server::tr("Successfully loaded"));
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
|
@ -2863,11 +2863,11 @@ just_dir:
|
|||
tools::wallet_rpc_server wrpc;
|
||||
if (wal) wrpc.set_wallet(wal.release());
|
||||
bool r = wrpc.init(&(vm.get()));
|
||||
CHECK_AND_ASSERT_MES(r, 1, tools::wallet_rpc_server::tr("Failed to initialize wallet rpc server"));
|
||||
CHECK_AND_ASSERT_MES(r, 1, tools::wallet_rpc_server::tr("Failed to initialize wallet RPC server"));
|
||||
tools::signal_handler::install([&wrpc](int) {
|
||||
wrpc.send_stop_signal();
|
||||
});
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Starting wallet rpc server"));
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Starting wallet RPC server"));
|
||||
try
|
||||
{
|
||||
wrpc.run();
|
||||
|
@ -2877,16 +2877,16 @@ just_dir:
|
|||
LOG_ERROR(tools::wallet_rpc_server::tr("Failed to run wallet: ") << e.what());
|
||||
return 1;
|
||||
}
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Stopped wallet rpc server"));
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Stopped wallet RPC server"));
|
||||
try
|
||||
{
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Storing wallet..."));
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Saving wallet..."));
|
||||
wrpc.stop();
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Stored ok"));
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Successfully saved"));
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG_ERROR(tools::wallet_rpc_server::tr("Failed to store wallet: ") << e.what());
|
||||
LOG_ERROR(tools::wallet_rpc_server::tr("Failed to save wallet: ") << e.what());
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue