8051: Can't fill in calculated and estimated dates in cs locale
This commit is contained in:
parent
7c35586ae2
commit
9fb493415a
@ -166,8 +166,10 @@ class DateParserCZ(DateParser):
|
|||||||
}
|
}
|
||||||
|
|
||||||
quality_to_int = {
|
quality_to_int = {
|
||||||
|
u'přibližně' : Date.QUAL_ESTIMATED,
|
||||||
u'odhadované' : Date.QUAL_ESTIMATED,
|
u'odhadované' : Date.QUAL_ESTIMATED,
|
||||||
u'odh.' : Date.QUAL_ESTIMATED,
|
u'odh.' : Date.QUAL_ESTIMATED,
|
||||||
|
u'vypočteno' : Date.QUAL_CALCULATED,
|
||||||
u'vypočtené' : Date.QUAL_CALCULATED,
|
u'vypočtené' : Date.QUAL_CALCULATED,
|
||||||
u'vyp.' : Date.QUAL_CALCULATED,
|
u'vyp.' : Date.QUAL_CALCULATED,
|
||||||
}
|
}
|
||||||
@ -238,14 +240,14 @@ class DateDisplayCZ(DateDisplay):
|
|||||||
return date.get_text()
|
return date.get_text()
|
||||||
elif start == Date.EMPTY:
|
elif start == Date.EMPTY:
|
||||||
return ""
|
return ""
|
||||||
elif mod == Date.MOD_NONE:
|
# elif mod == Date.MOD_NONE:
|
||||||
date_decl_string = self.display_cal[cal](start)
|
# date_decl_string = self.display_cal[cal](start)
|
||||||
date_decl_string = date_decl_string.replace(u"den ", u"dna ")
|
# date_decl_string = date_decl_string.replace(u"den ", u"dna ")
|
||||||
date_decl_string = date_decl_string.replace(u"or ", u"ora ")
|
# date_decl_string = date_decl_string.replace(u"or ", u"ora ")
|
||||||
date_decl_string = date_decl_string.replace(u"en ", u"na ")
|
# date_decl_string = date_decl_string.replace(u"en ", u"na ")
|
||||||
date_decl_string = date_decl_string.replace(u"ad ", u"adu ")
|
# date_decl_string = date_decl_string.replace(u"ad ", u"adu ")
|
||||||
date_decl_string = date_decl_string.replace(u"ec ", u"ce ")
|
# date_decl_string = date_decl_string.replace(u"ec ", u"ce ")
|
||||||
return date_decl_string
|
# return date_decl_string
|
||||||
elif mod == Date.MOD_SPAN:
|
elif mod == Date.MOD_SPAN:
|
||||||
dat1 = self.display_cal[cal](start)
|
dat1 = self.display_cal[cal](start)
|
||||||
dat2 = self.display_cal[cal](date.get_stop_date())
|
dat2 = self.display_cal[cal](date.get_stop_date())
|
||||||
|
Loading…
Reference in New Issue
Block a user