4532: Patch for Windows (by josip)

svn: r16386
This commit is contained in:
Jérôme Rapinat
2011-01-15 09:43:34 +00:00
parent 51f239f53b
commit 5c8a3f7488
5 changed files with 37 additions and 4 deletions

View File

@@ -47,13 +47,18 @@ log = logging.getLogger(".DateHandler")
#-------------------------------------------------------------------------
from _DateParser import DateParser
from _DateDisplay import DateDisplay, DateDisplayEn
import constfunc
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
LANG = locale.getlocale(locale.LC_TIME)[0]
if not constfunc.win():
LANG = locale.getlocale(locale.LC_TIME)[0]
else:
LANG = locale.getdefaultlocale(locale.LC_TIME)[0]
if not LANG:
if "LANG" in os.environ:
LANG = os.environ["LANG"]