Quit set_locale function if translation file doesn't exists
This commit is contained in:
@@ -125,6 +125,7 @@ class ManjaroHello():
|
|||||||
tr.install()
|
tr.install()
|
||||||
except OSError:
|
except OSError:
|
||||||
print("WARNING: No translation file for '{}' locale".format(locale))
|
print("WARNING: No translation file for '{}' locale".format(locale))
|
||||||
|
return
|
||||||
|
|
||||||
# Dirty code to fix an issue with gettext that can't translate strings from glade files
|
# Dirty code to fix an issue with gettext that can't translate strings from glade files
|
||||||
# Redfining all translatables strings
|
# Redfining all translatables strings
|
||||||
|
|||||||
Reference in New Issue
Block a user