mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-02 08:31:16 +03:00
Workaround for inability to set locale - fallback to 'C' locale
Fixes #355
This commit is contained in:
parent
a74bf40f8f
commit
88f6e28e75
6
l10n.py
6
l10n.py
@ -15,7 +15,11 @@ from traceback import print_exc
|
|||||||
import __builtin__
|
import __builtin__
|
||||||
|
|
||||||
import locale
|
import locale
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
try:
|
||||||
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
except:
|
||||||
|
# Locale env variables incorrect or locale package not installed/configured on Linux, mysterious reasons on Windows
|
||||||
|
print "Can't set locale!"
|
||||||
|
|
||||||
from config import config
|
from config import config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user