Remove fallback locale

This commit is contained in:
Mathieu Comandon 2019-10-16 06:25:00 -07:00
parent 32b1e33d5b
commit 36e72e3933

View file

@ -11,13 +11,14 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
import locale
import os
from os.path import realpath, dirname, normpath
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
SOURCE_PATH = normpath(os.path.join(LAUNCH_PATH, '..'))
sys.path.insert(0, SOURCE_PATH)
@ -27,8 +28,7 @@ else:
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")
sys.stderr.write("Unsupported locale setting. Fix your locales\n")
from lutris.gui.application import Application