* src/plugins/Verify.py: don't complain about difference in

ages between spouses if birth year is unknown.


svn: r5164
This commit is contained in:
Don Allingham
2005-09-01 20:25:55 +00:00
parent 36f08112f8
commit 59172268eb
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
2005-09-01 Don Allingham <don@gramps-project.org>
* 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 <Martin.Hawlisch@gmx.de>
* src/po/check_po: Support for multiple files as command line

View File

@@ -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() ) )

View File

@@ -10,7 +10,7 @@ msgstr ""
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"