mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Remove fallback locale
This commit is contained in:
parent
32b1e33d5b
commit
36e72e3933
|
@ -11,13 +11,14 @@
|
||||||
# You should have received a copy of the GNU General Public License along
|
# You should have received a copy of the GNU General Public License along
|
||||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import locale
|
import locale
|
||||||
|
import os
|
||||||
from os.path import realpath, dirname, normpath
|
from os.path import realpath, dirname, normpath
|
||||||
|
|
||||||
LAUNCH_PATH = dirname(realpath(__file__))
|
LAUNCH_PATH = dirname(realpath(__file__))
|
||||||
if os.path.isdir(os.path.join(LAUNCH_PATH,"../lutris")):
|
|
||||||
|
if os.path.isdir(os.path.join(LAUNCH_PATH, "../lutris")):
|
||||||
sys.dont_write_bytecode = True
|
sys.dont_write_bytecode = True
|
||||||
SOURCE_PATH = normpath(os.path.join(LAUNCH_PATH, '..'))
|
SOURCE_PATH = normpath(os.path.join(LAUNCH_PATH, '..'))
|
||||||
sys.path.insert(0, SOURCE_PATH)
|
sys.path.insert(0, SOURCE_PATH)
|
||||||
|
@ -27,8 +28,7 @@ else:
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_ALL, "")
|
locale.setlocale(locale.LC_ALL, "")
|
||||||
except locale.Error:
|
except locale.Error:
|
||||||
sys.stderr.write("Unsupported locale setting. Using 'C' as fallback locale.\n")
|
sys.stderr.write("Unsupported locale setting. Fix your locales\n")
|
||||||
locale.setlocale(locale.LC_ALL, "C")
|
|
||||||
|
|
||||||
from lutris.gui.application import Application
|
from lutris.gui.application import Application
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue