aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-07-14 20:28:25 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-07-14 20:28:25 +0100
commit78b2eabc8753056fd363db6fc449bbcddec9fcb8 (patch)
tree9ef2ef5de473cda7f0fbe794ef972d1cd0d0489f /src/simplewallet/simplewallet.h
parentMerge pull request #331 (diff)
downloadmonero-78b2eabc8753056fd363db6fc449bbcddec9fcb8.tar.xz
Translatable strings for simplewallet
The system is mostly the Qt system, but we don't use Qt to avoid the dependencies. See README.i18n for details.
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h
index 2b8ca0ed2..ad1dd015f 100644
--- a/src/simplewallet/simplewallet.h
+++ b/src/simplewallet/simplewallet.h
@@ -58,6 +58,9 @@ namespace cryptonote
class simple_wallet : public tools::i_wallet2_callback
{
public:
+ static const char *tr(const char *str) { return i18n_translate(str, "cryptonote::simple_wallet"); }
+
+ public:
typedef std::vector<std::string> command_type;
simple_wallet();
@@ -165,7 +168,7 @@ namespace cryptonote
if (std::chrono::milliseconds(1) < current_time - m_print_time || force)
{
- std::cout << "Height " << height << " of " << m_blockchain_height << '\r';
+ std::cout << QT_TRANSLATE_NOOP("Height ", "cryptonote::simple_wallet") << height << " / " << m_blockchain_height << '\r';
m_print_time = current_time;
}
}