translation: Croatian
remove print statments
This commit is contained in:
parent
a2030431c0
commit
d3eafc00db
@ -57,8 +57,7 @@ class DateParserHR(DateParser):
|
||||
'po. ' : Date.MOD_AFTER,
|
||||
'okolo' : Date.MOD_ABOUT,
|
||||
'ok. ' : Date.MOD_ABOUT,
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
quality_to_int = {
|
||||
'približno' : Date.QUAL_ESTIMATED,
|
||||
@ -70,26 +69,6 @@ class DateParserHR(DateParser):
|
||||
bce = ["prije nove ere", "prije Krista",
|
||||
"p.n.e."] + DateParser.bce
|
||||
|
||||
# def init_strings(self):
|
||||
# """
|
||||
# compiles regular expression strings for matching dates
|
||||
# """
|
||||
# DateParser.init_strings(self)
|
||||
# #~ DateParser.calendar_to_int.update({
|
||||
# #~ 'персидский' : Date.CAL_PERSIAN,
|
||||
# #~ 'п' : Date.CAL_PERSIAN,
|
||||
# #~ })
|
||||
# _span_1 = ['od']
|
||||
# _span_2 = ['do']
|
||||
# _range_1 = ['između']
|
||||
# _range_2 = ['i']
|
||||
# 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>.+)" %
|
||||
# ('|'.join(_range_1), '|'.join(_range_2)),
|
||||
# re.IGNORECASE)
|
||||
|
||||
def init_strings(self):
|
||||
"""
|
||||
compiles regular expression strings for matching dates
|
||||
@ -147,7 +126,6 @@ class DateDisplayHR(DateDisplay):
|
||||
this must agree with DateDisplayEn's "formats" definition
|
||||
(it may be overridden if a locale-specific date displayer exists)
|
||||
"""
|
||||
print('LONGMONTH: ', long_months)
|
||||
|
||||
_ = self._locale.translation.sgettext
|
||||
year = self._slash_year(date_val[2], date_val[3])
|
||||
@ -167,24 +145,6 @@ class DateDisplayHR(DateDisplay):
|
||||
inflect, long_months).replace('.', ''),
|
||||
year = year)
|
||||
|
||||
|
||||
# def dd_dformat04(self, date_val, inflect, long_months):
|
||||
# """
|
||||
# day month_name year
|
||||
# """
|
||||
# year = self._slash_year(date_val[2], date_val[3])
|
||||
# if date_val[0] == 0:
|
||||
# if date_val[1] == 0:
|
||||
# return year + '.'
|
||||
# else:
|
||||
# return self.format_long_month_year(date_val[1], year,
|
||||
# inflect, long_months)
|
||||
# else:
|
||||
# return "{day:d} {long_month} {year}".format(
|
||||
# day = date_val[0],
|
||||
# long_month = long_months[date_val[1]],
|
||||
# year = year)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Register classes
|
||||
|
Loading…
Reference in New Issue
Block a user