Skip to content

Commit

Permalink
Change Old_English to English_Old - 'Old English' is actually a language
Browse files Browse the repository at this point in the history
  • Loading branch information
Nano Akron committed Apr 24, 2017
1 parent 533187f commit 12fff10
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/mnemonics/CMakeLists.txt
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/mnemonics/electrum-words.cpp
Expand Up @@ -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"

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/mnemonics/electrum-words.h
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions src/mnemonics/old_english.h → src/mnemonics/english_old.h
Expand Up @@ -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>
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/mnemonics.cpp
Expand Up @@ -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"

Expand Down

0 comments on commit 12fff10

Please sign in to comment.