From 345aca138fe0ae5014c6e9787d16eb0782f97df3 Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 15 Aug 2023 11:53:18 -0500 Subject: [PATCH] Fix glocale problems on Windows --- gramps/gen/utils/grampslocale.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index abc3ff34be8..f25030e2f0b 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -731,17 +731,17 @@ def check_available_translations(self, loc): # is cached so we don't have to query the file system every # time this function is called. if not hasattr(self, "languages"): - self.language = self.get_available_translations() + self.languages = self.get_available_translations() if not loc: return None - if loc[:5] in self.language: + if loc[:5] in self.languages: return loc[:5] # US English is the outlier, all other English locales want real English: if loc[:2] == "en" and loc[:5] != "en_US": return "en_GB" - if loc[:2] in self.language: + if loc[:2] in self.languages: return loc[:2] return None