URI: 
       tuse language in config to choose wordlist - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a2065eff7244d5432ebf38e8f00939762c2b84b2
   DIR parent 92ba93405256f549cdbb58858957b8e69e488fc4
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue,  2 Sep 2014 15:34:11 +0200
       
       use language in config to choose wordlist
       
       Diffstat:
         M lib/mnemonic.py                     |       9 +++++++--
         M lib/wallet.py                       |       3 ++-
       
       2 files changed, 9 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/mnemonic.py b/lib/mnemonic.py
       t@@ -34,8 +34,13 @@ class Mnemonic(object):
        
            def __init__(self, lang=None):
                if lang is None:
       -            lang = 'english'
       -        path = os.path.join(os.path.dirname(__file__), 'wordlist', lang + '.txt')
       +            filename = 'english.txt'
       +        elif lang[0:2] == 'pt':
       +            filename = 'portuguese.txt'
       +        else:
       +            filename = 'english.txt'
       +
       +        path = os.path.join(os.path.dirname(__file__), 'wordlist', filename)
                lines = open(path,'r').read().strip().split('\n')
                self.wordlist = []
                for line in lines:
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -1298,7 +1298,8 @@ class BIP32_Wallet(Deterministic_Wallet):
                 return Mnemonic.mnemonic_to_seed(seed, password)
        
            def make_seed(self):
       -        return Mnemonic('english').make_seed()
       +        lang = self.storage.config.get('language')
       +        return Mnemonic(lang).make_seed()
        
            def prepare_seed(self, seed):
                return NEW_SEED_VERSION, Mnemonic.prepare_seed(seed)