Browse Source

by default, always use English mnemonic

283
ThomasV 9 years ago
parent
commit
e461ef4102
  1. 4
      lib/mnemonic.py

4
lib/mnemonic.py

@ -106,9 +106,7 @@ class Mnemonic(object):
# Seed derivation no longer follows BIP39 # Seed derivation no longer follows BIP39
# Mnemonic phrase uses a hash based checksum, instead of a wordlist-dependent checksum # Mnemonic phrase uses a hash based checksum, instead of a wordlist-dependent checksum
def __init__(self, lang=None): def __init__(self, lang='en'):
if lang in [None, '']:
lang = i18n.language.info().get('language', 'en')
print_error('language', lang) print_error('language', lang)
filename = filenames.get(lang[0:2], 'english.txt') filename = filenames.get(lang[0:2], 'english.txt')
path = os.path.join(os.path.dirname(__file__), 'wordlist', filename) path = os.path.join(os.path.dirname(__file__), 'wordlist', filename)

Loading…
Cancel
Save