Merge pull request #2292

cb2d5ac7 mnemonics: new Esperanto word list (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-08-15 20:56:49 +02:00
commit 124cbe3cf3
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
4 changed files with 1708 additions and 3 deletions

View file

@ -45,7 +45,8 @@ set(mnemonics_private_headers
portuguese.h
russian.h
singleton.h
spanish.h)
spanish.h
esperanto.h)
monero_private_headers(mnemonics
${mnemonics_private_headers})

View file

@ -61,6 +61,7 @@
#include "portuguese.h"
#include "japanese.h"
#include "russian.h"
#include "esperanto.h"
#include "english_old.h"
#include "language_base.h"
#include "singleton.h"
@ -95,6 +96,7 @@ namespace
Language::Singleton<Language::Portuguese>::instance(),
Language::Singleton<Language::Japanese>::instance(),
Language::Singleton<Language::Russian>::instance(),
Language::Singleton<Language::Esperanto>::instance(),
Language::Singleton<Language::EnglishOld>::instance()
});
Language::Base *fallback = NULL;
@ -354,6 +356,10 @@ namespace crypto
{
language = Language::Singleton<Language::Chinese_Simplified>::instance();
}
else if (language_name == "Esperanto")
{
language = Language::Singleton<Language::Esperanto>::instance();
}
else
{
return false;
@ -408,7 +414,8 @@ namespace crypto
Language::Singleton<Language::Portuguese>::instance(),
Language::Singleton<Language::Russian>::instance(),
Language::Singleton<Language::Japanese>::instance(),
Language::Singleton<Language::Chinese_Simplified>::instance()
Language::Singleton<Language::Chinese_Simplified>::instance(),
Language::Singleton<Language::Esperanto>::instance()
});
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
it != language_instances.end(); it++)

1695
src/mnemonics/esperanto.h Normal file

File diff suppressed because it is too large Load diff

View file

@ -44,6 +44,7 @@
#include "mnemonics/russian.h"
#include "mnemonics/french.h"
#include "mnemonics/dutch.h"
#include "mnemonics/esperanto.h"
#include "mnemonics/english_old.h"
#include "mnemonics/language_base.h"
#include "mnemonics/singleton.h"
@ -165,7 +166,8 @@ TEST(mnemonics, all_languages)
Language::Singleton<Language::Italian>::instance(),
Language::Singleton<Language::Russian>::instance(),
Language::Singleton<Language::French>::instance(),
Language::Singleton<Language::Dutch>::instance()
Language::Singleton<Language::Dutch>::instance(),
Language::Singleton<Language::Esperanto>::instance()
});
for (std::vector<Language::Base*>::iterator it = languages.begin(); it != languages.end(); it++)