Skip to content
Snippets Groups Projects
Commit 1797c5fe authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Handle exception.

parent 7160aa60
No related branches found
No related tags found
No related merge requests found
......@@ -90,15 +90,19 @@ class DummyPythonQtViewStep:
def widget(self):
return self.main_widget
def retranslate(self, localeName):
def retranslate(self, locale_name):
calamares.utils.debug("DummyPythonQt retranslation event "
"for locale name: {}".format(localeName))
"for locale name: {}".format(locale_name))
try:
global _
_t = gettext.translation('dummypythonqt',
os.path.join(_path, 'lang'),
languages=[localeName])
languages=[locale_name])
_ = _t.lgettext
except OSError as e:
calamares.utils.debug(e)
pass
class DummyPQJob:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment