From 59172268eb03387cc1c31eb6560425bb640d655e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 1 Sep 2005 20:25:55 +0000 Subject: [PATCH] * src/plugins/Verify.py: don't complain about difference in ages between spouses if birth year is unknown. svn: r5164 --- gramps2/ChangeLog | 2 ++ gramps2/src/plugins/Verify.py | 2 +- gramps2/src/po/zh_CN.po | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 6dd867b23..5fa538458 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,8 @@ 2005-09-01 Don Allingham * src/ImageSelect.py: Local edit of a media Note type now brings up the Note editor instead of the media editor. + * src/plugins/Verify.py: don't complain about difference in + ages between spouses if birth year is unknown. 2005-09-01 Martin Hawlisch * src/po/check_po: Support for multiple files as command line diff --git a/gramps2/src/plugins/Verify.py b/gramps2/src/plugins/Verify.py index e979e9272..27dd2910a 100644 --- a/gramps2/src/plugins/Verify.py +++ b/gramps2/src/plugins/Verify.py @@ -324,7 +324,7 @@ class Verify: idstr,family.get_gramps_id(), spouse.get_primary_name().get_name() ) ) sdyear = self.get_year( spouse.get_death_handle() ) sbyear = self.get_year( spouse.get_birth_handle() ) - if abs(sbyear-byear) > hwdif: + if sbyear != 0 and byear != 0 and abs(sbyear-byear) > hwdif: warn.write( _("Large age difference between husband and wife: %s in family %s, and %s.\n") % ( idstr,family.get_gramps_id(), spouse.get_primary_name().get_name() ) ) diff --git a/gramps2/src/po/zh_CN.po b/gramps2/src/po/zh_CN.po index 909aec22b..e08ea080d 100644 --- a/gramps2/src/po/zh_CN.po +++ b/gramps2/src/po/zh_CN.po @@ -10,7 +10,7 @@ msgstr "" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=GB2312\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: pygettext.py 1.4\n"