From b6f77eb4e3a350e5528bd40549d593bf74cf5301 Mon Sep 17 00:00:00 2001 From: Petr Hejl Date: Thu, 11 Sep 2014 17:28:59 +0200 Subject: [PATCH] 8051: Can't fill in calculated and estimated dates in cs locale --- gramps/gen/datehandler/_date_cs.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/gramps/gen/datehandler/_date_cs.py b/gramps/gen/datehandler/_date_cs.py index 28c18b961..a731ff57a 100644 --- a/gramps/gen/datehandler/_date_cs.py +++ b/gramps/gen/datehandler/_date_cs.py @@ -165,8 +165,10 @@ class DateParserCZ(DateParser): } quality_to_int = { + 'přibližně' : Date.QUAL_ESTIMATED, 'odhadované' : Date.QUAL_ESTIMATED, 'odh.' : Date.QUAL_ESTIMATED, + 'vypočteno' : Date.QUAL_CALCULATED, 'vypočtené' : Date.QUAL_CALCULATED, 'vyp.' : Date.QUAL_CALCULATED, } @@ -237,14 +239,14 @@ class DateDisplayCZ(DateDisplay): return date.get_text() elif start == Date.EMPTY: return "" - elif mod == Date.MOD_NONE: - date_decl_string = self.display_cal[cal](start) - date_decl_string = date_decl_string.replace("den ", "dna ") - date_decl_string = date_decl_string.replace("or ", "ora ") - date_decl_string = date_decl_string.replace("en ", "na ") - date_decl_string = date_decl_string.replace("ad ", "adu ") - date_decl_string = date_decl_string.replace("ec ", "ce ") - return date_decl_string +# elif mod == Date.MOD_NONE: +# date_decl_string = self.display_cal[cal](start) +# date_decl_string = date_decl_string.replace("den ", "dna ") +# date_decl_string = date_decl_string.replace("or ", "ora ") +# date_decl_string = date_decl_string.replace("en ", "na ") +# date_decl_string = date_decl_string.replace("ad ", "adu ") +# date_decl_string = date_decl_string.replace("ec ", "ce ") +# return date_decl_string elif mod == Date.MOD_SPAN: dat1 = self.display_cal[cal](start) dat2 = self.display_cal[cal](date.get_stop_date())