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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user