Fix translate

master3.3
parent 6a08b474ae
commit 6b53d4ec6d

@ -192,13 +192,12 @@ def parse():
import gettext
try:
set_lang = gettext.locale.getdefaultlocale()[0][:2]
lang = gettext.translation('cl_consolegui3', languages=[set_lang])
lang = gettext.translation('cl_consolegui3', languages=[set_lang],fallback=True)
try:
lang.install(unicode=True)
except UnboundLocalError:
pass
except (IOError, TypeError):
lang = gettext.translation('cl_consolegui3', languages=['en'])
try:
lang.install(unicode=True)
except UnboundLocalError:
pass
import argparse

@ -112,6 +112,7 @@ class ApiClient(QtGui.QWidget):
languages=[self.lang])
except IOError:
self.lang = 'en'
lang = gettext.translation('cl_consolegui3',fallback=True)
try:
lang.install(unicode=True)

Loading…
Cancel
Save