GrampsLocale: Protect another setlocale instance
svn: r21612
This commit is contained in:
parent
7055827260
commit
56e29c162b
@ -163,7 +163,10 @@ class GrampsLocale(object):
|
||||
domain=None, language=None):
|
||||
|
||||
#First, globally set the locale to what's in the environment:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except locale.Error:
|
||||
pass
|
||||
|
||||
if localedir and os.path.exists(localedir):
|
||||
self.localedir = localedir
|
||||
|
Loading…
Reference in New Issue
Block a user