Browse Source

Add default language for mnemonic

Add en as default language for mnemonic
283
Michael Wozniak 10 years ago
parent
commit
27a663091b
  1. 2
      lib/mnemonic.py

2
lib/mnemonic.py

@ -101,7 +101,7 @@ class Mnemonic(object):
def __init__(self, lang=None):
if lang in [None, '']:
lang = i18n.language.info().get('language')
lang = i18n.language.info().get('language', 'en')
print_error('language', lang)
filename = filenames.get(lang[0:2], 'english.txt')
path = os.path.join(util.data_dir(), 'wordlist', filename)

Loading…
Cancel
Save