Use LC_MESSAGES locale, not default system locale in i18n

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3699 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2008-04-21 01:27:38 +00:00
parent 3e3728b156
commit fa48fe354d

View file

@ -149,10 +149,10 @@ def get_locale ():
"""
loc = None
try:
loc = locale.getdefaultlocale()[0]
loc = locale.getlocale(category=locale.LC_MESSAGES)[0]
except ValueError:
# XXX ignore Python bug
# http://sourceforge.net/tracker/index.php?func=detail&aid=1158909&group_id=5470&atid=105470
# http://bugs.python.org/issue1158909
pass
if loc is None:
return 'C'