diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-17 22:46:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-17 22:46:41 +0000 |
commit | 8ea3c4d54429976e9001b8cc4868b721e6747e3c (patch) | |
tree | 6c40d6a2d08336a9a57edcc143da028e6642dd97 /src/mnemonics/language_base.h | |
parent | Merge pull request #3421 (diff) | |
download | monero-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/language_base.h')
-rw-r--r-- | src/mnemonics/language_base.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mnemonics/language_base.h b/src/mnemonics/language_base.h index 2124b8ea4..2b0c37c6b 100644 --- a/src/mnemonics/language_base.h +++ b/src/mnemonics/language_base.h @@ -82,6 +82,7 @@ namespace Language std::unordered_map<std::string, uint32_t> word_map; /*!< hash table to find word's index */
std::unordered_map<std::string, uint32_t> trimmed_word_map; /*!< hash table to find word's trimmed index */
std::string language_name; /*!< Name of language */
+ std::string english_language_name; /*!< Name of language */
uint32_t unique_prefix_length; /*!< Number of unique starting characters to trim the wordlist to when matching */
/*!
* \brief Populates the word maps after the list is ready.
@@ -122,10 +123,11 @@ namespace Language }
}
public:
- Base(const char *language_name, const std::vector<std::string> &words, uint32_t prefix_length):
+ Base(const char *language_name, const char *english_language_name, const std::vector<std::string> &words, uint32_t prefix_length):
word_list(words),
unique_prefix_length(prefix_length),
- language_name(language_name)
+ language_name(language_name),
+ english_language_name(english_language_name)
{
}
virtual ~Base()
@@ -164,6 +166,14 @@ namespace Language return language_name;
}
/*!
+ * \brief Returns the name of the language in English.
+ * \return Name of the language.
+ */
+ const std::string &get_english_language_name() const
+ {
+ return english_language_name;
+ }
+ /*!
* \brief Returns the number of unique starting characters to be used for matching.
* \return Number of unique starting characters.
*/
|