Fix bug which prevents certain languages from being loaded

https://forum.manjaro.org/t/start-work-on-a-new-welcome-screen-manjaro-hello/13685/281?u=huluti
This commit is contained in:
Huluti
2017-01-14 15:04:30 +01:00
parent f13331f86a
commit 37213d55f8
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -126,6 +126,8 @@ class ManjaroHello():
:param locale: locale to use
:type locale: str
"""
if "_" in locale:
locale = locale.replace("_", "-")
try:
tr = gettext.translation(self.app, self.locale_path, [locale], fallback=True)
tr.install()