mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-28 10:04:43 +00:00
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:
parent
3e3728b156
commit
fa48fe354d
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue