Merge pull request #2292
cb2d5ac7
mnemonics: new Esperanto word list (moneromooo-monero)
This commit is contained in:
commit
124cbe3cf3
|
@ -45,7 +45,8 @@ set(mnemonics_private_headers
|
||||||
portuguese.h
|
portuguese.h
|
||||||
russian.h
|
russian.h
|
||||||
singleton.h
|
singleton.h
|
||||||
spanish.h)
|
spanish.h
|
||||||
|
esperanto.h)
|
||||||
|
|
||||||
monero_private_headers(mnemonics
|
monero_private_headers(mnemonics
|
||||||
${mnemonics_private_headers})
|
${mnemonics_private_headers})
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
#include "portuguese.h"
|
#include "portuguese.h"
|
||||||
#include "japanese.h"
|
#include "japanese.h"
|
||||||
#include "russian.h"
|
#include "russian.h"
|
||||||
|
#include "esperanto.h"
|
||||||
#include "english_old.h"
|
#include "english_old.h"
|
||||||
#include "language_base.h"
|
#include "language_base.h"
|
||||||
#include "singleton.h"
|
#include "singleton.h"
|
||||||
|
@ -95,6 +96,7 @@ namespace
|
||||||
Language::Singleton<Language::Portuguese>::instance(),
|
Language::Singleton<Language::Portuguese>::instance(),
|
||||||
Language::Singleton<Language::Japanese>::instance(),
|
Language::Singleton<Language::Japanese>::instance(),
|
||||||
Language::Singleton<Language::Russian>::instance(),
|
Language::Singleton<Language::Russian>::instance(),
|
||||||
|
Language::Singleton<Language::Esperanto>::instance(),
|
||||||
Language::Singleton<Language::EnglishOld>::instance()
|
Language::Singleton<Language::EnglishOld>::instance()
|
||||||
});
|
});
|
||||||
Language::Base *fallback = NULL;
|
Language::Base *fallback = NULL;
|
||||||
|
@ -354,6 +356,10 @@ namespace crypto
|
||||||
{
|
{
|
||||||
language = Language::Singleton<Language::Chinese_Simplified>::instance();
|
language = Language::Singleton<Language::Chinese_Simplified>::instance();
|
||||||
}
|
}
|
||||||
|
else if (language_name == "Esperanto")
|
||||||
|
{
|
||||||
|
language = Language::Singleton<Language::Esperanto>::instance();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -408,7 +414,8 @@ namespace crypto
|
||||||
Language::Singleton<Language::Portuguese>::instance(),
|
Language::Singleton<Language::Portuguese>::instance(),
|
||||||
Language::Singleton<Language::Russian>::instance(),
|
Language::Singleton<Language::Russian>::instance(),
|
||||||
Language::Singleton<Language::Japanese>::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();
|
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
|
||||||
it != language_instances.end(); it++)
|
it != language_instances.end(); it++)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -44,6 +44,7 @@
|
||||||
#include "mnemonics/russian.h"
|
#include "mnemonics/russian.h"
|
||||||
#include "mnemonics/french.h"
|
#include "mnemonics/french.h"
|
||||||
#include "mnemonics/dutch.h"
|
#include "mnemonics/dutch.h"
|
||||||
|
#include "mnemonics/esperanto.h"
|
||||||
#include "mnemonics/english_old.h"
|
#include "mnemonics/english_old.h"
|
||||||
#include "mnemonics/language_base.h"
|
#include "mnemonics/language_base.h"
|
||||||
#include "mnemonics/singleton.h"
|
#include "mnemonics/singleton.h"
|
||||||
|
@ -165,7 +166,8 @@ TEST(mnemonics, all_languages)
|
||||||
Language::Singleton<Language::Italian>::instance(),
|
Language::Singleton<Language::Italian>::instance(),
|
||||||
Language::Singleton<Language::Russian>::instance(),
|
Language::Singleton<Language::Russian>::instance(),
|
||||||
Language::Singleton<Language::French>::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++)
|
for (std::vector<Language::Base*>::iterator it = languages.begin(); it != languages.end(); it++)
|
||||||
|
|
Loading…
Reference in New Issue