Don't show Old English as an available option

This commit is contained in:
Oran Juice 2014-10-03 16:25:44 +05:30
parent 3e6b6bad2d
commit 443d46a6f1
No known key found for this signature in database
GPG Key ID: 71C5AF46CCB28124
9 changed files with 6653 additions and 6653 deletions

View File

@ -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++)

View File

@ -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.

View File

@ -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;