From 8deb444a6c2898925d95d86608b05563e939f3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Hata=C5=A1?= Date: Sun, 7 Jun 2015 10:53:24 +0200 Subject: [PATCH] datehandler translation fix --- gramps/gen/datehandler/_date_cs.py | 4 +++- po/cs.po | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/gen/datehandler/_date_cs.py b/gramps/gen/datehandler/_date_cs.py index e8c94d3d4..3b303aa88 100644 --- a/gramps/gen/datehandler/_date_cs.py +++ b/gramps/gen/datehandler/_date_cs.py @@ -164,7 +164,7 @@ class DateParserCZ(DateParser): quality_to_int = { 'přibližně' : Date.QUAL_ESTIMATED, - 'odhadované' : Date.QUAL_ESTIMATED, + 'odhadem' : Date.QUAL_ESTIMATED, 'odh.' : Date.QUAL_ESTIMATED, 'vypočteno' : Date.QUAL_CALCULATED, 'vypočtené' : Date.QUAL_CALCULATED, @@ -173,6 +173,8 @@ class DateParserCZ(DateParser): def init_strings(self): DateParser.init_strings(self) + self._text2 = re.compile('(\d+)?\.?\s+?%s\.?\s*((\d+)(/\d+)?)?\s*$' + % self._mon_str, re.IGNORECASE) self._span = re.compile( "(od)\s+(?P.+)\s+(do)\s+(?P.+)", re.IGNORECASE) diff --git a/po/cs.po b/po/cs.po index 0b074e41e..fc0800392 100644 --- a/po/cs.po +++ b/po/cs.po @@ -1673,7 +1673,7 @@ msgstr "kolem " #: ../gramps/gen/datehandler/_datestrings.py:220 msgid "date quality|estimated " -msgstr "přibližně " +msgstr "odhadem " #: ../gramps/gen/datehandler/_datestrings.py:221 msgid "date quality|calculated "