diff options
author | Nano Akron <nanoakron@users.noreply.github.com> | 2017-04-16 11:24:40 +0100 |
---|---|---|
committer | Nano Akron <nanoakron@users.noreply.github.com> | 2017-04-16 12:06:53 +0100 |
commit | 54bcd260fff32816a0908a9255faf97d4a20ae2c (patch) | |
tree | 7783e136f7922b3b4b30eed057e3b0bcd198bd05 /src/mnemonics/electrum-words.cpp | |
parent | Merge pull request #1956 (diff) | |
download | monero-54bcd260fff32816a0908a9255faf97d4a20ae2c.tar.xz |
Added Simplified Chinese electrum word list
Diffstat (limited to '')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index fd2c6a836..5bd06c3e8 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -51,6 +51,7 @@ #include <boost/crc.hpp> #include <boost/algorithm/string/join.hpp> +#include "chinese_simplified.h" #include "english.h" #include "dutch.h" #include "french.h" @@ -84,6 +85,7 @@ namespace { // If there's a new language added, add an instance of it here. std::vector<Language::Base*> language_instances({ + Language::Singleton<Language::Chinese_Simplified>::instance(), Language::Singleton<Language::English>::instance(), Language::Singleton<Language::Dutch>::instance(), Language::Singleton<Language::French>::instance(), @@ -348,6 +350,10 @@ namespace crypto { language = Language::Singleton<Language::Russian>::instance(); } + else if (language_name == "Chinese (Simplified)") + { + language = Language::Singleton<Language::Chinese_Simplified>::instance(); + } else { return false; @@ -393,6 +399,7 @@ namespace crypto void get_language_list(std::vector<std::string> &languages) { std::vector<Language::Base*> language_instances({ + Language::Singleton<Language::Chinese_Simplified>::instance(), Language::Singleton<Language::English>::instance(), Language::Singleton<Language::Dutch>::instance(), Language::Singleton<Language::French>::instance(), |