aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/electrum-words.cpp
diff options
context:
space:
mode:
authorWei Tang <hi@that.world>2017-09-26 06:42:17 +0800
committerWei Tang <hi@that.world>2017-09-26 06:42:17 +0800
commit551a8ea60e18dcd9abbf4024c26d9baf27837b99 (patch)
tree8769004ef2164181c1c284a3f51f009762ed1437 /src/mnemonics/electrum-words.cpp
parentMerge pull request #2527 (diff)
downloadmonero-551a8ea60e18dcd9abbf4024c26d9baf27837b99.tar.xz
mnemonics: new Lojban word list
Word list authored by: sorpaas Sources: lo gimste jo'u lo ma'oste (http://guskant.github.io/lojbo/gismu-cmavo.html) N-grams of Lojban corpus (https://mw.lojban.org/papri/N-grams_of_Lojban_corpus)
Diffstat (limited to 'src/mnemonics/electrum-words.cpp')
-rw-r--r--src/mnemonics/electrum-words.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp
index 2fe5d9985..6ae33a743 100644
--- a/src/mnemonics/electrum-words.cpp
+++ b/src/mnemonics/electrum-words.cpp
@@ -62,6 +62,7 @@
#include "japanese.h"
#include "russian.h"
#include "esperanto.h"
+#include "lojban.h"
#include "english_old.h"
#include "language_base.h"
#include "singleton.h"
@@ -97,6 +98,7 @@ namespace
Language::Singleton<Language::Japanese>::instance(),
Language::Singleton<Language::Russian>::instance(),
Language::Singleton<Language::Esperanto>::instance(),
+ Language::Singleton<Language::Lojban>::instance(),
Language::Singleton<Language::EnglishOld>::instance()
});
Language::Base *fallback = NULL;
@@ -360,6 +362,10 @@ namespace crypto
{
language = Language::Singleton<Language::Esperanto>::instance();
}
+ else if (language_name == "Lojban")
+ {
+ language = Language::Singleton<Language::Lojban>::instance();
+ }
else
{
return false;
@@ -415,7 +421,8 @@ namespace crypto
Language::Singleton<Language::Russian>::instance(),
Language::Singleton<Language::Japanese>::instance(),
Language::Singleton<Language::Chinese_Simplified>::instance(),
- Language::Singleton<Language::Esperanto>::instance()
+ Language::Singleton<Language::Esperanto>::instance(),
+ Language::Singleton<Language::Lojban>::instance()
});
for (std::vector<Language::Base*>::iterator it = language_instances.begin();
it != language_instances.end(); it++)