mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
It's not required to pass a locale name to setlocale
This commit is contained in:
parent
4b44450608
commit
e0b39596bf
|
@ -24,11 +24,7 @@ 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")))
|
||||
|
||||
try:
|
||||
locale_name = locale.getlocale()
|
||||
locale.setlocale(locale.LC_ALL, locale_name)
|
||||
except (locale.Error, ValueError):
|
||||
sys.stderr.write("Unsupported locale %s. Try running with LC_ALL=C.\n" % locale_name)
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
|
||||
from lutris.gui.application import Application
|
||||
|
||||
|
|
Loading…
Reference in a new issue