From 252d2932dfe780e238204f2132ca08b12ab7bb37 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 24 Feb 2013 01:49:01 +0000 Subject: [PATCH] [r21282]GrampsLocale: Fix creation of second GrampsLocale svn: r21421 --- gramps/gen/utils/grampslocale.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 40bee82bd..d24ff604f 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -252,6 +252,13 @@ class GrampsLocale(object): if len(self.language) == 0: self.language = self._GrampsLocale__first_instance.language + if lang: + self.lang = lang + else: + self.lang = self._GrampsLocale__first_instance.lang + + self.collation = self.currency = self.calendar = self.lang + self.icu_locales = {} self.collator = None if HAVE_ICU: