added and/or clarified various date handler comments

also slightly reformatted a few date handler lines
and fixed one (locale-specific) date handler typo


svn: r22672
This commit is contained in:
Paul Franklin
2013-07-13 18:01:08 +00:00
parent c7ad6127da
commit e4cbeaef19
25 changed files with 152 additions and 94 deletions

View File

@@ -88,7 +88,7 @@ class DateParserSK(DateParser):
_span_2 = ['do']
_range_1 = ['medzi']
_range_2 = ['a']
self._span = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" %
self._span = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" %
('|'.join(_span_1), '|'.join(_span_2)),
re.IGNORECASE)
self._range = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" %
@@ -125,6 +125,8 @@ class DateDisplaySK(DateDisplay):
"RRRR-MM-DD (ISO)", "numerický", "Mesiac Deň, Rok",
"MES Deň, Rok", "Deň, Mesiac, Rok", "Deň MES Rok"
)
# this must agree with DateDisplayEn's "formats" definition
# (since no locale-specific _display_gregorian exists, here)
def display(self, date):
"""