Simplify way to handle en translations

This commit is contained in:
Hugo Posnic
2016-12-21 22:24:30 +01:00
parent 3f947d2260
commit 717d8ad11d
2 changed files with 1 additions and 128 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class ManjaroHello():
:type locale: str
"""
try:
tr = gettext.translation(self.app, self.locale_path, [locale])
tr = gettext.translation(self.app, self.locale_path, [locale], fallback=True)
tr.install()
except OSError:
print("WARNING: No translation file for '{}' locale".format(locale))