mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Don't show Old English as an available option
This commit is contained in:
parent
3e6b6bad2d
commit
443d46a6f1
@ -349,8 +349,7 @@ namespace crypto
|
|||||||
Language::Singleton<Language::English>::instance(),
|
Language::Singleton<Language::English>::instance(),
|
||||||
Language::Singleton<Language::Spanish>::instance(),
|
Language::Singleton<Language::Spanish>::instance(),
|
||||||
Language::Singleton<Language::Portuguese>::instance(),
|
Language::Singleton<Language::Portuguese>::instance(),
|
||||||
Language::Singleton<Language::Japanese>::instance(),
|
Language::Singleton<Language::Japanese>::instance()
|
||||||
Language::Singleton<Language::OldEnglish>::instance()
|
|
||||||
});
|
});
|
||||||
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
|
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
|
||||||
it != language_instances.end(); it++)
|
it != language_instances.end(); it++)
|
||||||
|
@ -59,6 +59,7 @@ namespace crypto
|
|||||||
namespace ElectrumWords
|
namespace ElectrumWords
|
||||||
{
|
{
|
||||||
|
|
||||||
|
const std::string old_language_name = "OldEnglish";
|
||||||
/*!
|
/*!
|
||||||
* \brief Converts seed words to bytes (secret key).
|
* \brief Converts seed words to bytes (secret key).
|
||||||
* \param words String containing the words separated by spaces.
|
* \param words String containing the words separated by spaces.
|
||||||
|
@ -507,7 +507,7 @@ bool simple_wallet::new_wallet(const std::string &wallet_file, const std::string
|
|||||||
// convert rng value to electrum-style word list
|
// convert rng value to electrum-style word list
|
||||||
std::string electrum_words;
|
std::string electrum_words;
|
||||||
|
|
||||||
bool was_deprecated_wallet = (old_language == "OldEnglish") ||
|
bool was_deprecated_wallet = (old_language == crypto::ElectrumWords::old_language_name) ||
|
||||||
crypto::ElectrumWords::get_is_old_style_seed(m_electrum_seed);
|
crypto::ElectrumWords::get_is_old_style_seed(m_electrum_seed);
|
||||||
|
|
||||||
std::string mnemonic_language = old_language;
|
std::string mnemonic_language = old_language;
|
||||||
|
Loading…
Reference in New Issue
Block a user