From 7fb81b5c211701fba2be1231ac7acb2675a357de Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 21 Jan 2013 15:14:17 +0000 Subject: [PATCH] GrampsLocale: Fix call to member function. svn: r21186 --- 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 8426c690e..f3e600848 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -122,7 +122,7 @@ class GrampsLocale(object): language = [] else: language = [l for l in languages - if l in get_available_translations()] + if l in self.get_available_translations()] if mac(): from . import maclocale @@ -145,7 +145,7 @@ class GrampsLocale(object): if not language or len(language) == 0: if "LANGUAGE" in os.environ: language = [l for l in os.environ["LANGUAGE"].split(":") - if l in get_available_translations()] + if l in self.get_available_translations()] self.language = language elif not lang == "C.UTF-8": self.language = [lang[0:2]] @@ -216,7 +216,7 @@ class GrampsLocale(object): self.language = [] if languages and len(languages) > 0: self.language = [l for l in languages - if l in get_available_translations()] + if l in self.get_available_translations()] if len(self.language) == 0: self.language = self._GrampsLocale__first_instance.language