From 81a702e9af646a7fed3a3d3c328d465b46cd577b Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 3 Feb 2013 02:05:14 +0000 Subject: [PATCH] GrampsLocale: Fix some oversights in creation of second GrampsLocale svn: r21282 --- 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 319b48396..bb2f1c8a6 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: