commit 12e9e40fce489d0221b21261c8d7d771dc9db887
parent c02faeba2d54dd080381bedae01247a697c13294
Author: wozz <wozz@users.noreply.github.com>
Date: Sun, 21 Sep 2014 10:49:55 -0400
Merge pull request #864 from wozz/default-lang
Add default language for mnemonic
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mnemonic.py b/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)