diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 83917eeae..95a9d1687 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -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'