Quit set_locale function if translation file doesn't exists

This commit is contained in:
Hugo Posnic 2016-12-21 18:39:15 +01:00
parent f9aaf65d44
commit 1fc694e889

View File

@ -125,6 +125,7 @@ class ManjaroHello():
tr.install()
except OSError:
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
# Redfining all translatables strings