mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Use fallback locale if locale is configured incorrectly (fixes #2341)
This commit is contained in:
parent
a136c4cda1
commit
fefe47521c
|
@ -24,7 +24,11 @@ if os.path.isdir(os.path.join(LAUNCH_PATH,"../lutris")):
|
|||
else:
|
||||
sys.path.insert(0, os.path.normpath(os.path.join(LAUNCH_PATH, "../lib/lutris")))
|
||||
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
except locale.Error:
|
||||
sys.stderr.write("Unsupported locale setting. Using 'C' as fallback locale.\n")
|
||||
locale.setlocale(locale.LC_ALL, "C")
|
||||
|
||||
from lutris.gui.application import Application
|
||||
|
||||
|
|
Loading…
Reference in a new issue