Quit set_locale function if translation file doesn't exists

merge-requests/64/head
Hugo Posnic 2016-12-21 18:39:15 +01:00
parent f9aaf65d44
commit 1fc694e889
1 changed files with 1 additions and 0 deletions

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