GEPS008: Move Gramps locale module into the datahandler
svn: r19819
This commit is contained in:
@@ -49,7 +49,7 @@ log = logging.getLogger(".DateParser")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gen.lib import Date, DateError
|
||||
import gen.locale
|
||||
import _grampslocale
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -140,7 +140,7 @@ class DateParser(object):
|
||||
'Sep' : 9, 'Oct' : 10, 'Nov' : 11, 'Dec' : 12,
|
||||
}
|
||||
|
||||
month_to_int = gen.locale.month_to_int
|
||||
month_to_int = _grampslocale.month_to_int
|
||||
|
||||
# modifiers before the date
|
||||
modifier_to_int = {
|
||||
@@ -272,7 +272,7 @@ class DateParser(object):
|
||||
Date.CAL_SWEDISH : self._parse_swedish,
|
||||
}
|
||||
|
||||
fmt = gen.locale.tformat
|
||||
fmt = _grampslocale.tformat
|
||||
match = self._fmt_parse.match(fmt.lower())
|
||||
if match:
|
||||
self.dmy = (match.groups() == ('d', 'm', 'y') or \
|
||||
|
||||
Reference in New Issue
Block a user