From dda6988dfc33808db074d408fba66ed18f3bad48 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 14 Jul 2008 12:14:43 +0000 Subject: [PATCH] ticket 2244 Date parser for Norwegian locale, allow 'b' for month svn: r10854 --- src/DateHandler/_DateParser.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DateHandler/_DateParser.py b/src/DateHandler/_DateParser.py index f28e810c7..04970ce34 100644 --- a/src/DateHandler/_DateParser.py +++ b/src/DateHandler/_DateParser.py @@ -197,8 +197,10 @@ class DateParser: fmt = GrampsLocale.tformat match = self._fmt_parse.match(fmt.lower()) if match: - self.dmy = (match.groups() == ('d', 'm', 'y')) - self.ymd = (match.groups() == ('y', 'm', 'd')) + self.dmy = (match.groups() == ('d', 'm', 'y') or \ + match.groups() == ('d', 'b', 'y')) + self.ymd = (match.groups() == ('y', 'm', 'd') or \ + match.groups() == ('y', 'b', 'd')) else: self.dmy = True self.ymd = False