Add Dutch mnemonics wordlist

This commit is contained in:
Roy Jacobs 2017-03-24 20:35:25 +01:00
parent 11e24bb2ba
commit 5a4827ae21
3 changed files with 1699 additions and 0 deletions

View File

@ -34,6 +34,7 @@ set(mnemonics_headers)
set(mnemonics_private_headers set(mnemonics_private_headers
electrum-words.h electrum-words.h
english.h english.h
dutch.h
french.h french.h
german.h german.h
italian.h italian.h

1691
src/mnemonics/dutch.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -52,6 +52,7 @@
#include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/join.hpp>
#include "english.h" #include "english.h"
#include "dutch.h"
#include "french.h" #include "french.h"
#include "italian.h" #include "italian.h"
#include "german.h" #include "german.h"
@ -84,6 +85,7 @@ namespace
// If there's a new language added, add an instance of it here. // If there's a new language added, add an instance of it here.
std::vector<Language::Base*> language_instances({ std::vector<Language::Base*> language_instances({
Language::Singleton<Language::English>::instance(), Language::Singleton<Language::English>::instance(),
Language::Singleton<Language::Dutch>::instance(),
Language::Singleton<Language::French>::instance(), Language::Singleton<Language::French>::instance(),
Language::Singleton<Language::Spanish>::instance(), Language::Singleton<Language::Spanish>::instance(),
Language::Singleton<Language::German>::instance(), Language::Singleton<Language::German>::instance(),
@ -314,6 +316,10 @@ namespace crypto
{ {
language = Language::Singleton<Language::English>::instance(); language = Language::Singleton<Language::English>::instance();
} }
else if (language_name == "Dutch")
{
language = Language::Singleton<Language::Dutch>::instance();
}
else if (language_name == "French") else if (language_name == "French")
{ {
language = Language::Singleton<Language::French>::instance(); language = Language::Singleton<Language::French>::instance();
@ -388,6 +394,7 @@ namespace crypto
{ {
std::vector<Language::Base*> language_instances({ std::vector<Language::Base*> language_instances({
Language::Singleton<Language::English>::instance(), Language::Singleton<Language::English>::instance(),
Language::Singleton<Language::Dutch>::instance(),
Language::Singleton<Language::French>::instance(), Language::Singleton<Language::French>::instance(),
Language::Singleton<Language::Spanish>::instance(), Language::Singleton<Language::Spanish>::instance(),
Language::Singleton<Language::German>::instance(), Language::Singleton<Language::German>::instance(),