From 3d4fa83587759095b7f0ccfe4075808098d4ae7f Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Tue, 29 May 2018 18:49:44 +0200 Subject: Stop translating command line options Many options are extremely technical, and refer internals, making it difficult to translate usefully. This came up in discussion of e.g. #10949. If a message is not understood by translators (which are typically end-users, not developers) they'll either translate it literally, making it harder to understand instead of easier, with the added drawback of the user no longer being able to google it. Also the translation was only working for bitcoin-qt as with the console programs, there is no translation backend. So it was injecting never-used translation messages for bitcoin-cli, -tx. For these reasons, stop translating options help completely. This should not affect the output **in any way** except for bitcoin-qt when a non-English language is configured in the locale. This implements #10962. --- src/util.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp index 6a2b2c1ed4..963a7f531f 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -558,36 +558,36 @@ std::string ArgsManager::GetHelpMessage() { const bool show_debug = gArgs.GetBoolArg("-help-debug", false); - std::string usage = HelpMessageGroup(_("Options:")); + std::string usage = HelpMessageGroup("Options:"); OptionsCategory last_cat = OptionsCategory::OPTIONS; for (auto& arg : m_available_args) { if (arg.first.first != last_cat) { last_cat = arg.first.first; if (last_cat == OptionsCategory::CONNECTION) - usage += HelpMessageGroup(_("Connection options:")); + usage += HelpMessageGroup("Connection options:"); else if (last_cat == OptionsCategory::ZMQ) - usage += HelpMessageGroup(_("ZeroMQ notification options:")); + usage += HelpMessageGroup("ZeroMQ notification options:"); else if (last_cat == OptionsCategory::DEBUG_TEST) - usage += HelpMessageGroup(_("Debugging/Testing options:")); + usage += HelpMessageGroup("Debugging/Testing options:"); else if (last_cat == OptionsCategory::NODE_RELAY) - usage += HelpMessageGroup(_("Node relay options:")); + usage += HelpMessageGroup("Node relay options:"); else if (last_cat == OptionsCategory::BLOCK_CREATION) - usage += HelpMessageGroup(_("Block creation options:")); + usage += HelpMessageGroup("Block creation options:"); else if (last_cat == OptionsCategory::RPC) - usage += HelpMessageGroup(_("RPC server options:")); + usage += HelpMessageGroup("RPC server options:"); else if (last_cat == OptionsCategory::WALLET) - usage += HelpMessageGroup(_("Wallet options:")); + usage += HelpMessageGroup("Wallet options:"); else if (last_cat == OptionsCategory::WALLET_DEBUG_TEST && show_debug) - usage += HelpMessageGroup(_("Wallet debugging/testing options:")); + usage += HelpMessageGroup("Wallet debugging/testing options:"); else if (last_cat == OptionsCategory::CHAINPARAMS) - usage += HelpMessageGroup(_("Chain selection options:")); + usage += HelpMessageGroup("Chain selection options:"); else if (last_cat == OptionsCategory::GUI) - usage += HelpMessageGroup(_("UI Options:")); + usage += HelpMessageGroup("UI Options:"); else if (last_cat == OptionsCategory::COMMANDS) - usage += HelpMessageGroup(_("Commands:")); + usage += HelpMessageGroup("Commands:"); else if (last_cat == OptionsCategory::REGISTER_COMMANDS) - usage += HelpMessageGroup(_("Register Commands:")); + usage += HelpMessageGroup("Register Commands:"); } if (show_debug || !arg.second.second) { usage += HelpMessageOpt(arg.first.second, arg.second.first); -- cgit v1.2.3