GrampsLocale: Fix MSWin Syntax error
Can't do everything the C way :-( svn: r21858
This commit is contained in:
parent
ea9ddaba69
commit
a8c7156b76
@ -189,10 +189,12 @@ class GrampsLocale(object):
|
||||
self.lang = loc[0]
|
||||
self.languages = [loc[0]]
|
||||
self.encoding = loc[1]
|
||||
elif ((lang, loc) = _check_mswin_locale(lang)):
|
||||
self.lang = lang
|
||||
self.language = [self.lang]
|
||||
self.encoding = loc[1]
|
||||
else:
|
||||
(lang, loc) = _check_mswin_locale(lang)
|
||||
if lang:
|
||||
self.lang = lang
|
||||
self.language = [self.lang]
|
||||
self.encoding = loc[1]
|
||||
|
||||
if not self.lang:
|
||||
self.lang = 'C'
|
||||
|
Loading…
Reference in New Issue
Block a user