Browse Source

Merge pull request #864 from wozz/default-lang

Add default language for mnemonic
283
wozz 10 years ago
parent
commit
12e9e40fce
  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