call set_language only if gui is used.
This commit is contained in:
2
electrum
2
electrum
@@ -147,7 +147,6 @@ if __name__ == '__main__':
|
|||||||
parser = arg_parser()
|
parser = arg_parser()
|
||||||
options, args = parser.parse_args()
|
options, args = parser.parse_args()
|
||||||
set_verbosity(options.verbose)
|
set_verbosity(options.verbose)
|
||||||
set_language(options.language)
|
|
||||||
|
|
||||||
# config is an object passed to the various constructors (wallet, interface, gui)
|
# config is an object passed to the various constructors (wallet, interface, gui)
|
||||||
if 'ANDROID_DATA' in os.environ:
|
if 'ANDROID_DATA' in os.environ:
|
||||||
@@ -208,6 +207,7 @@ if __name__ == '__main__':
|
|||||||
interface.start()
|
interface.start()
|
||||||
interface.send([('server.peers.subscribe',[])])
|
interface.send([('server.peers.subscribe',[])])
|
||||||
|
|
||||||
|
set_language(config.get('language'))
|
||||||
gui = gui.ElectrumGui(wallet, config)
|
gui = gui.ElectrumGui(wallet, config)
|
||||||
|
|
||||||
found = config.wallet_file_exists
|
found = config.wallet_file_exists
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ if os.path.exists('./locale'):
|
|||||||
else:
|
else:
|
||||||
LOCALE_DIR = '/usr/share/locale'
|
LOCALE_DIR = '/usr/share/locale'
|
||||||
|
|
||||||
print LOCALE_DIR
|
|
||||||
|
|
||||||
language = gettext.translation('electrum', LOCALE_DIR, fallback = True)
|
language = gettext.translation('electrum', LOCALE_DIR, fallback = True)
|
||||||
|
|
||||||
def _(x):
|
def _(x):
|
||||||
|
|||||||
Reference in New Issue
Block a user