aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-11-30 07:31:41 +0200
committerRiccardo Spagni <ric@spagni.net>2015-11-30 07:31:44 +0200
commitf78f9c5480e4c378731ff5e13c40086e8153d1b9 (patch)
tree10fa54265b1fb6fb9a34c765d6d9af577917715e /src
parentMerge pull request #510 (diff)
parentsimplewallet: add tr markers in a few missing user visible strings (diff)
downloadmonero-f78f9c5480e4c378731ff5e13c40086e8153d1b9.tar.xz
Merge pull request #512
36a298c simplewallet: add tr markers in a few missing user visible strings (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 1e8d02cec..537fc72ef 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -799,19 +799,19 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
m_wallet_file += std::string(":") + parts[n];
bool r = new_wallet(m_wallet_file, pwd_container.password(), address, viewkey, testnet);
- CHECK_AND_ASSERT_MES(r, false, "account creation failed");
+ CHECK_AND_ASSERT_MES(r, false, tr("account creation failed"));
}
else
{
bool r = new_wallet(m_wallet_file, pwd_container.password(), m_recovery_key, m_restore_deterministic_wallet,
m_non_deterministic, testnet, old_language);
- CHECK_AND_ASSERT_MES(r, false, "account creation failed");
+ CHECK_AND_ASSERT_MES(r, false, tr("account creation failed"));
}
}
else
{
bool r = open_wallet(m_wallet_file, pwd_container.password(), testnet);
- CHECK_AND_ASSERT_MES(r, false, "could not open account");
+ CHECK_AND_ASSERT_MES(r, false, tr("could not open account"));
}
return true;
@@ -1405,7 +1405,7 @@ bool simple_wallet::show_incoming_transfers(const std::vector<std::string>& args
message_writer(td.m_spent ? epee::log_space::console_color_magenta : epee::log_space::console_color_green, false) <<
boost::format("%21s%8s%16u%68s") %
print_money(td.amount()) %
- (td.m_spent ? "T" : "F") %
+ (td.m_spent ? tr("T") : tr("F")) %
td.m_global_output_index %
get_transaction_hash (td.m_tx);
}
@@ -2104,11 +2104,11 @@ bool simple_wallet::check_tx_key(const std::vector<std::string> &args_)
if (received > 0)
{
- success_msg_writer() << get_account_address_as_str(m_wallet->testnet(), address) << " received " << print_money(received) << " in txid " << txid;
+ success_msg_writer() << get_account_address_as_str(m_wallet->testnet(), address) << " " << tr("received") << " " << print_money(received) << " " << tr("in txid") << " " << txid;
}
else
{
- fail_msg_writer() << get_account_address_as_str(m_wallet->testnet(), address) << " received nothing in txid " << txid;
+ fail_msg_writer() << get_account_address_as_str(m_wallet->testnet(), address) << " " << tr("received nothing in txid") << " " << txid;
}
return true;
@@ -2153,7 +2153,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_)
min_height = boost::lexical_cast<uint64_t>(local_args[0]);
}
catch (boost::bad_lexical_cast &) {
- fail_msg_writer() << "Bad min_height parameter: " << local_args[0];
+ fail_msg_writer() << tr("Bad min_height parameter:") << " " << local_args[0];
return true;
}
local_args.erase(local_args.begin());
@@ -2165,7 +2165,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_)
max_height = boost::lexical_cast<uint64_t>(local_args[0]);
}
catch (boost::bad_lexical_cast &) {
- fail_msg_writer() << "Bad max_height parameter: " << local_args[0];
+ fail_msg_writer() << tr("Bad max_height parameter:") << " " << local_args[0];
return true;
}
local_args.erase(local_args.begin());