diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-07-22 22:00:06 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-07-22 22:00:06 +0200 |
commit | 6d6a985c929e44fd810d37b53862bd7f9683b854 (patch) | |
tree | ac95db820e3b138b5f650ac78336cf9fef644192 /src/mnemonics/electrum-words.cpp | |
parent | fix portuguese wordlist (diff) | |
download | monero-6d6a985c929e44fd810d37b53862bd7f9683b854.tar.xz |
add Germany and Italian wordlists
Diffstat (limited to 'src/mnemonics/electrum-words.cpp')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index 9c42c5792..c32f3f4fa 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -52,6 +52,8 @@ #include <boost/algorithm/string/join.hpp> #include "english.h" +#include "italian.h" +#include "german.h" #include "spanish.h" #include "portuguese.h" #include "japanese.h" @@ -78,6 +80,8 @@ namespace std::vector<Language::Base*> language_instances({ Language::Singleton<Language::English>::instance(), Language::Singleton<Language::Spanish>::instance(), + Language::Singleton<Language::German>::instance(), + Language::Singleton<Language::Italian>::instance(), Language::Singleton<Language::Portuguese>::instance(), Language::Singleton<Language::Japanese>::instance(), Language::Singleton<Language::OldEnglish>::instance() @@ -293,6 +297,14 @@ namespace crypto { language = Language::Singleton<Language::Japanese>::instance(); } + else if (language_name == "Italian") + { + language = Language::Singleton<Language::Italian>::instance(); + } + else if (language_name == "German") + { + language = Language::Singleton<Language::German>::instance(); + } else { return false; @@ -340,6 +352,8 @@ namespace crypto std::vector<Language::Base*> language_instances({ Language::Singleton<Language::English>::instance(), Language::Singleton<Language::Spanish>::instance(), + Language::Singleton<Language::German>::instance(), + Language::Singleton<Language::Italian>::instance(), Language::Singleton<Language::Portuguese>::instance(), Language::Singleton<Language::Japanese>::instance() }); |