Handle exception.

main
Teo Mrnjavac 8 years ago
parent 7160aa60c3
commit 1797c5fea1

@ -90,15 +90,19 @@ class DummyPythonQtViewStep:
def widget(self): def widget(self):
return self.main_widget return self.main_widget
def retranslate(self, localeName): def retranslate(self, locale_name):
calamares.utils.debug("DummyPythonQt retranslation event " calamares.utils.debug("DummyPythonQt retranslation event "
"for locale name: {}".format(localeName)) "for locale name: {}".format(locale_name))
global _ try:
_t = gettext.translation('dummypythonqt', global _
os.path.join(_path, 'lang'), _t = gettext.translation('dummypythonqt',
languages=[localeName]) os.path.join(_path, 'lang'),
_ = _t.lgettext languages=[locale_name])
_ = _t.lgettext
except OSError as e:
calamares.utils.debug(e)
pass
class DummyPQJob: class DummyPQJob:

Loading…
Cancel
Save