Fixes #1850 - Add French mnemonics wordlist

This commit is contained in:
assylias 2017-03-23 16:46:31 +00:00 committed by Yann Le Tallec
parent 16f12f0628
commit 31616af33d
3 changed files with 1699 additions and 0 deletions

View File

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

View File

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

1691
src/mnemonics/french.h Normal file

File diff suppressed because it is too large Load Diff