diff options
author | Nano Akron <nanoakron@users.noreply.github.com> | 2017-04-24 20:27:12 +0100 |
---|---|---|
committer | Nano Akron <nanoakron@users.noreply.github.com> | 2017-04-24 20:27:12 +0100 |
commit | 12fff108ea0d538478ccdba3e4e8052a32f15054 (patch) | |
tree | 820c9fbf1c28bcd5138c8759e4627769e5aac8c3 | |
parent | Change all wallet language names into native names (and scripts) (diff) | |
download | monero-12fff108ea0d538478ccdba3e4e8052a32f15054.tar.xz |
Change Old_English to English_Old - 'Old English' is actually a language
Diffstat (limited to '')
-rw-r--r-- | src/mnemonics/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 4 | ||||
-rw-r--r-- | src/mnemonics/electrum-words.h | 2 | ||||
-rw-r--r-- | src/mnemonics/english_old.h (renamed from src/mnemonics/old_english.h) | 12 | ||||
-rw-r--r-- | tests/unit_tests/mnemonics.cpp | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/mnemonics/CMakeLists.txt b/src/mnemonics/CMakeLists.txt index 4db19d195..c521a0932 100644 --- a/src/mnemonics/CMakeLists.txt +++ b/src/mnemonics/CMakeLists.txt @@ -41,7 +41,7 @@ set(mnemonics_private_headers italian.h japanese.h language_base.h - old_english.h + english_old.h portuguese.h russian.h singleton.h diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index c7c86f08d..ef1100a10 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -61,7 +61,7 @@ #include "portuguese.h" #include "japanese.h" #include "russian.h" -#include "old_english.h" +#include "english_old.h" #include "language_base.h" #include "singleton.h" @@ -95,7 +95,7 @@ namespace Language::Singleton<Language::Portuguese>::instance(), Language::Singleton<Language::Japanese>::instance(), Language::Singleton<Language::Russian>::instance(), - Language::Singleton<Language::OldEnglish>::instance() + Language::Singleton<Language::EnglishOld>::instance() }); Language::Base *fallback = NULL; diff --git a/src/mnemonics/electrum-words.h b/src/mnemonics/electrum-words.h index d1aa65939..3655dd201 100644 --- a/src/mnemonics/electrum-words.h +++ b/src/mnemonics/electrum-words.h @@ -60,7 +60,7 @@ namespace crypto { const int seed_length = 24; - const std::string old_language_name = "OldEnglish"; + const std::string old_language_name = "EnglishOld"; /*! * \brief Converts seed words to bytes (secret key). * \param words String containing the words separated by spaces. diff --git a/src/mnemonics/old_english.h b/src/mnemonics/english_old.h index 21ac95de3..9fa5e81e1 100644 --- a/src/mnemonics/old_english.h +++ b/src/mnemonics/english_old.h @@ -29,13 +29,13 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*!
- * \file old_english.h
+ * \file english_old.h
*
- * \brief Old English word list and map.
+ * \brief Older version of English word list and map.
*/
-#ifndef OLD_ENGLISH_H
-#define OLD_ENGLISH_H
+#ifndef ENGLISH_OLD_H
+#define ENGLISH_OLD_H
#include <vector>
#include <unordered_map>
@@ -48,10 +48,10 @@ */
namespace Language
{
- class OldEnglish: public Base
+ class EnglishOld: public Base
{
public:
- OldEnglish(): Base("OldEnglish", std::vector<std::string>({
+ EnglishOld(): Base("EnglishOld", std::vector<std::string>({
"like",
"just",
"love",
diff --git a/tests/unit_tests/mnemonics.cpp b/tests/unit_tests/mnemonics.cpp index e00b87e30..956c5e1b2 100644 --- a/tests/unit_tests/mnemonics.cpp +++ b/tests/unit_tests/mnemonics.cpp @@ -44,7 +44,7 @@ #include "mnemonics/russian.h" #include "mnemonics/french.h" #include "mnemonics/dutch.h" -#include "mnemonics/old_english.h" +#include "mnemonics/english_old.h" #include "mnemonics/language_base.h" #include "mnemonics/singleton.h" |