GEPS008: Move Gramps locale module into the datahandler

svn: r19819
This commit is contained in:
Nick Hall
2012-06-10 15:09:49 +00:00
parent 58d7914312
commit af0b93b069
15 changed files with 22 additions and 77 deletions

View File

@@ -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 \