aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/electrum-words.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-17 22:46:41 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-17 22:46:41 +0000
commit8ea3c4d54429976e9001b8cc4868b721e6747e3c (patch)
tree6c40d6a2d08336a9a57edcc143da028e6642dd97 /src/mnemonics/electrum-words.h
parentMerge pull request #3421 (diff)
downloadmonero-8ea3c4d54429976e9001b8cc4868b721e6747e3c.tar.xz
simplewallet: new --use-english-language-names flag
On some Windows systems, displaying language names in their own languages freezes the display.
Diffstat (limited to 'src/mnemonics/electrum-words.h')
-rw-r--r--src/mnemonics/electrum-words.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mnemonics/electrum-words.h b/src/mnemonics/electrum-words.h
index 48ee378c0..856edb92a 100644
--- a/src/mnemonics/electrum-words.h
+++ b/src/mnemonics/electrum-words.h
@@ -106,8 +106,9 @@ namespace crypto
/*!
* \brief Gets a list of seed languages that are supported.
* \param languages A vector is set to the list of languages.
+ * \param english whether to get the names in English or the language language
*/
- void get_language_list(std::vector<std::string> &languages);
+ void get_language_list(std::vector<std::string> &languages, bool english = false);
/*!
* \brief Tells if the seed passed is an old style seed or not.
@@ -115,6 +116,13 @@ namespace crypto
* \return true if the seed passed is a old style seed false if not.
*/
bool get_is_old_style_seed(std::string seed);
+
+ /*!
+ * \brief Returns the name of a language in English
+ * \param name the name of the language in its own language
+ * \return the name of the language in English
+ */
+ std::string get_english_name_for(const std::string &name);
}
}