From 3c84e93b7a17fb987f2ed3980d31a043257dff9f Mon Sep 17 00:00:00 2001 From: Petr Hejl Date: Thu, 11 Sep 2014 17:17:34 +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 b8d2a087f..2a8e974b1 100644 --- a/gramps/gen/datehandler/_date_cs.py +++ b/gramps/gen/datehandler/_date_cs.py @@ -163,8 +163,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, } @@ -235,14 +237,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())