From cd4585b100bedfe5b351b6dbf6d534a7e6145b15 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 31 Mar 2013 22:51:38 +0000 Subject: [PATCH] [r21831][Bug 6553] Get Datehandler base language from GRAMPS_LOCALE.calendar svn: r21834 --- gramps/gen/datehandler/_datehandler.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gramps/gen/datehandler/_datehandler.py b/gramps/gen/datehandler/_datehandler.py index 638d6381d..30dc42583 100644 --- a/gramps/gen/datehandler/_datehandler.py +++ b/gramps/gen/datehandler/_datehandler.py @@ -49,16 +49,13 @@ log = logging.getLogger(".gen.datehandler") from ._dateparser import DateParser from ._datedisplay import DateDisplay, DateDisplayEn from ..constfunc import win, cuni - +from ..const import GRAMPS_LOCALE as glocale #------------------------------------------------------------------------- # # Constants # #------------------------------------------------------------------------- -if not win(): - LANG = locale.getlocale(locale.LC_TIME)[0] -else: - LANG = locale.getdefaultlocale(locale.LC_TIME)[0] +LANG = glocale.calendar # If LANG contains ".UTF-8" use only the part to the left of "." # Otherwise some date handler will not load.