Correcting Verify.py messages

svn: r1447
This commit is contained in:
Alex Roitman 2003-04-14 03:48:24 +00:00
parent 50f50f5ee6
commit 02aa7a7bc2
2 changed files with 225 additions and 116 deletions

View File

@ -105,7 +105,7 @@ def on_apply_clicked(obj):
warn = ""
for person in personList:
idstr = person.getId() + " " +person.getPrimaryName().getName()
idstr = person.getPrimaryName().getName() + " (" + person.getId() + ")"
# individual checks
byear = get_year( person.getBirth() )
@ -114,22 +114,22 @@ def on_apply_clicked(obj):
buryear = 0
if byear>0 and bapyear>0:
if byear > bapyear:
error = error + _("Baptized before birth %s born %d baptized %d.\n") % (idstr, byear, bapyear)
error = error + _("Baptized before birth: %s born %d, baptized %d.\n") % (idstr, byear, bapyear)
if byear < bapyear:
warn = warn + _("Baptized late %s born %d baptized %d.\n") % (idstr, byear, bapyear)
warn = warn + _("Baptized late: %s born %d, baptized %d.\n") % (idstr, byear, bapyear)
if dyear>0 and buryear>0:
if dyear > buryear:
error = error + _("Buried before death %s died %d buried %d.\n") % (idstr, dyear, buryear)
error = error + _("Buried before death: %s died %d, buried %d.\n") % (idstr, dyear, buryear)
if dyear < buryear:
warn = warn + _("Buried late %s died %d buried %d.\n") % (idstr, dyear, buryear)
warn = warn + _("Buried late: %s died %d, buried %d.\n") % (idstr, dyear, buryear)
if dyear>0 and (byear>dyear):
error = error + _("Died before birth %s born %d died %d.\n") % (idstr, byear, dyear)
error = error + _("Died before birth: %s born %d, died %d.\n") % (idstr, byear, dyear)
if dyear>0 and (bapyear>dyear):
error = error + _("Died before birth %s baptized %d died %d.\n") % (idstr, bapyear, dyear)
error = error + _("Died before birth: %s baptized %d, died %d.\n") % (idstr, bapyear, dyear)
if buryear>0 and (byear>buryear):
error = error + _("Buried before birth %s born %d died %d.\n") % (idstr, byear, buryear)
error = error + _("Buried before birth: %s born %d, died %d.\n") % (idstr, byear, buryear)
if buryear>0 and (bapyear>buryear):
error = error + _("Buried before birth %s baptized %d died %d.\n") % (idstr, bapyear, buryear)
error = error + _("Buried before birth: %s baptized %d, died %d.\n") % (idstr, bapyear, buryear)
if byear == 0:
byear = bapyear # guess baptism = birth
if dyear == 0:
@ -139,7 +139,7 @@ def on_apply_clicked(obj):
else:
ageatdeath = 0
if ageatdeath > oldage:
warn = warn + _("Old age %s born %d died %d age %d.\n") % (idstr, byear, dyear, ageatdeath)
warn = warn + _("Old age: %s born %d, died %d, at the age of %d.\n") % (idstr, byear, dyear, ageatdeath)
# gender checks
if person.getGender() == RelLib.Person.female:
@ -153,13 +153,13 @@ def on_apply_clicked(obj):
yngpar = yngdad
waswidstr = _(" was a widower ")
if (person.getGender() != RelLib.Person.female) and (person.getGender() != RelLib.Person.male):
warn = warn + _("Unknown gender %s.\n") % idstr
warn = warn + _("Unknown gender for %s.\n") % idstr
parstr = _("parent ")
oldpar = olddad
yngpar = yngdad
waswidstr = _(" was a widow ")
if (person.getGender() == RelLib.Person.female) and (person.getGender() == RelLib.Person.male):
error = error + _("Ambigous gender %s.\n") % idstr
error = error + _("Ambigous gender for %s.\n") % idstr
parstr = _("parent ")
oldpar = olddad
yngpar = yngdad
@ -167,15 +167,15 @@ def on_apply_clicked(obj):
# multiple parentage check
if( len(person.getParentList()) > 1 ):
warn = warn + _("Multiple parentage %s.\n") % idstr
warn = warn + _("Multiple parentage for %s.\n") % idstr
# marriage checks
nkids = 0
nfam = len( person.getFamilyList() )
if nfam > wedder:
warn = warn + _("Married often %s married %d times.\n") % (idstr, nfam)
warn = warn + _("Married often: %s married %d times.\n") % (idstr, nfam)
if ageatdeath>oldunm and nfam == 0:
warn = warn + _("Old and unmarried %s died unmarried aged %d years.\n") % (idstr, ageatdeath)
warn = warn + _("Old and unmarried: %s died unmarried, at the age of %d years.\n") % (idstr, ageatdeath)
first_cbyear = 99999
last_cbyear=0
prev_cbyear=0
@ -188,11 +188,11 @@ def on_apply_clicked(obj):
father = family.getFather()
if mother!=None and father!=None:
if mother.getGender() == father.getGender():
warn = warn + _("Homosexual marriage %s family %s.\n") % (idstr, family.getId())
warn = warn + _("Homosexual marriage: %s in family %s.\n") % (idstr, family.getId())
if family.getFather() == person and person.getGender() == RelLib.Person.female:
error = error + _("Female husband %s family %s.\n") % (idstr, family.getId())
error = error + _("Female husband: %s in family %s.\n") % (idstr, family.getId())
if family.getMother() == person and person.getGender() == RelLib.Person.male:
error = error + _("Male wife %s family %s.\n") % (idstr, family.getId())
error = error + _("Male wife: %s in family %s.\n") % (idstr, family.getId())
if family.getFather() == person:
spouse = family.getMother()
else:
@ -200,7 +200,7 @@ def on_apply_clicked(obj):
if spouse != None:
if person.getGender() == RelLib.Person.male and \
person.getPrimaryName().getSurname() == spouse.getPrimaryName().getSurname():
warn = warn + _("Husband and wife with same surname %s family %s %s.\n") % ( idstr,family.getId(), spouse.getPrimaryName().getName())
warn = warn + _("Husband and wife with the same surname: %s in family %s, and %s.\n") % ( idstr,family.getId(), spouse.getPrimaryName().getName())
sdyear = get_year( spouse.getDeath() )
if sdyear == 0:
sdyear = 0 # burial year
@ -218,16 +218,16 @@ def on_apply_clicked(obj):
if byear > 0:
marage = maryear - byear
if marage < 0:
error = error + _("Married before birth %s born %d married %d to %s.\n") % (idstr, byear, maryear, spouse.getPrimaryName().getName())
error = error + _("Married before birth: %s born %d, married %d to %s.\n") % (idstr, byear, maryear, spouse.getPrimaryName().getName())
else:
if marage < yngmar:
warn = warn + _("Young marriage %s married at age %d to %s.\n") % (idstr, marage, spouse.getPrimaryName().getName())
warn = warn + _("Young marriage: %s married at age %d to %s.\n") % (idstr, marage, spouse.getPrimaryName().getName())
if marage > oldmar:
warn = warn + _("Old marriage %s married at age %d to %s.\n") % (idstr, marage, spouse.getPrimaryName().getName())
warn = warn + _("Old marriage: %s married at age %d to %s.\n") % (idstr, marage, spouse.getPrimaryName().getName())
if dyear>0 and maryear > dyear:
error = error + _("Married after death %s died %d married %d to %s.\n") % (idstr, dyear, maryear, spouse.getPrimaryName().getName())
error = error + _("Married after death: %s died %d, married %d to %s.\n") % (idstr, dyear, maryear, spouse.getPrimaryName().getName())
if prev_cbyear > maryear:
warn = warn + _("Marriage before birth from previous family %s married %d to %s previous birth %d.\n") % (idstr, maryear, spouse.getPrimaryName().getName(), prev_cbyear)
warn = warn + _("Marriage before birth from previous family: %s married %d to %s, previous birth %d.\n") % (idstr, maryear, spouse.getPrimaryName().getName(), prev_cbyear)
prev_maryear = maryear
else:
maryear = prev_maryear
@ -235,12 +235,12 @@ def on_apply_clicked(obj):
if maryear>0 and prev_sdyear > 0:
wdwyear = maryear-prev_sdyear
if wdwyear > lngwdw:
warn = warn + _("Long widowhood %s %s %d years before family %s.\n") % (idstr, waswidstr, wdwyear,family.getId() )
warn = warn + _("Long widowhood: %s %s %d years before, family %s.\n") % (idstr, waswidstr, wdwyear,family.getId() )
if fnum==nfam and dyear>0 and sdyear>0:
wdwyear = dyear - sdyear
if wdwyear > lngwdw:
warn = warn + _("Long widowhood %s %s %d years.\n") % (idstr, waswidstr, wdwyear)
warn = warn + _("Long widowhood: %s %s %d years.\n") % (idstr, waswidstr, wdwyear)
nkids = 0
for child in family.getChildList():
@ -254,20 +254,20 @@ def on_apply_clicked(obj):
if byear>0 and cbyear>0:
bage = cbyear - byear
if bage > oldpar:
warn = warn + _("Old %s %s age %d family %s child %s.\n") % (parstr, idstr, bage, family.getId(), child.getPrimaryName().getName())
warn = warn + _("Old %s: %s at age of %d in family %s had a child %s.\n") % (parstr, idstr, bage, family.getId(), child.getPrimaryName().getName())
if bage < 0:
error = error + _("Unborn %s %s born %d family %s child %s born %d.\n") % (parstr, idstr, byear, family.getId(), child.getPrimaryName().getName(), cbyear)
error = error + _("Unborn %s: %s born %d, in family %s had a child %s born %d.\n") % (parstr, idstr, byear, family.getId(), child.getPrimaryName().getName(), cbyear)
else:
if bage < yngpar:
warn = warn + _("Young %s %s age %d family %s child %s.\n") % (parstr, idstr, bage, family.getId(), child.getPrimaryName().getName())
warn = warn + _("Young %s: %s at the age of %d in family %s had a child %s.\n") % (parstr, idstr, bage, family.getId(), child.getPrimaryName().getName())
if dyear>0 and cbyear>dyear:
if person.getGender() == RelLib.Person.male:
if cbyear-1>dyear:
error = error + _("Dead %s %s died %d family %s child %s born %d.\n") % (parstr, idstr, dyear, family.getId(), child.getPrimaryName().getName(), cbyear)
error = error + _("Dead %s: %s died %d, but in family %s had a child %s born %d.\n") % (parstr, idstr, dyear, family.getId(), child.getPrimaryName().getName(), cbyear)
else:
warn = warn + _("Dead %s %s died %d family %s child %s born %d.\n") % (parstr, idstr, dyear, family.getId(), child.getPrimaryName().getName(), cbyear)
warn = warn + _("Dead %s: %s died %d, but in family %s had a child %s born %d.\n") % (parstr, idstr, dyear, family.getId(), child.getPrimaryName().getName(), cbyear)
else:
error = error + _("Dead %s %s died %d family %s child %s born %d.\n") % (parstr, idstr, dyear, family.getId(), child.getPrimaryName().getName(), cbyear)
error = error + _("Dead %s: %s died %d, but in family %s had a child %s born %d.\n") % (parstr, idstr, dyear, family.getId(), child.getPrimaryName().getName(), cbyear)
text = ""

View File

@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: GRAMPS VERSION\n"
"POT-Creation-Date: Thu Apr 10 20:17:42 2003\n"
"POT-Creation-Date: Sun Apr 13 22:43:06 2003\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1371,6 +1371,7 @@ msgid "Add Children"
msgstr ""
#: SelectChild.py:81 SelectChild.py:86 SelectChild.py:90
#: plugins/RelCalc.py:321
msgid "Relationship to %s"
msgstr ""
@ -2168,10 +2169,6 @@ msgstr ""
msgid "SVG (Scalable Vector Graphics)"
msgstr ""
#: docgen/TextBufDoc.py:169
msgid "Text Buffer Preview"
msgstr ""
#: edit_person.glade:33
msgid "Abandon changes and close window"
msgstr ""
@ -3365,9 +3362,8 @@ msgid "Ancestor Chart"
msgstr ""
#: plugins/AncestorChart.py:217 plugins/AncestorChart.py:426
#: plugins/DesGraph.py:308 plugins/DesGraph.py:460 plugins/FullFamily.py:105
#: plugins/FullFamily.py:170 plugins/GraphViz.py:78 plugins/GraphViz.py:448
#: plugins/TimeLine.py:316 plugins/TimeLine.py:457
#: plugins/DesGraph.py:308 plugins/DesGraph.py:460 plugins/GraphViz.py:78
#: plugins/GraphViz.py:448 plugins/TimeLine.py:316 plugins/TimeLine.py:457
msgid "Graphical Reports"
msgstr ""
@ -3380,38 +3376,33 @@ msgid "Save Ancestor Chart"
msgstr ""
#: plugins/AncestorChart.py:238 plugins/DesGraph.py:325
#: plugins/FullFamily.py:126
msgid "Display Format"
msgstr ""
#: plugins/AncestorChart.py:239 plugins/DesGraph.py:326
#: plugins/FullFamily.py:127
msgid "Allows you to customize the data in the boxes in the report"
msgstr ""
#: plugins/AncestorChart.py:248 plugins/AncestorReport.py:262
#: plugins/DesGraph.py:335 plugins/FamilyGroup.py:417
#: plugins/FtmStyleAncestors.py:231 plugins/IndivComplete.py:528
#: plugins/IndivSummary.py:371
#: plugins/IndivComplete.py:528 plugins/IndivSummary.py:371
msgid "The basic style used for the text display."
msgstr ""
#: plugins/AncestorChart.py:427 plugins/AncestorReport.py:389
#: plugins/DescendReport.py:284 plugins/DetAncestralReport.py:972
#: plugins/DetDescendantReport.py:850 plugins/FamilyGroup.py:566
#: plugins/FtmStyleAncestors.py:358 plugins/FullFamily.py:171
#: plugins/GraphViz.py:447 plugins/IndivComplete.py:667
#: plugins/IndivSummary.py:500 plugins/Summary.py:150 plugins/TimeLine.py:456
#: plugins/WebPage.py:1267
msgid "Beta"
msgstr ""
#: plugins/AncestorChart.py:428 plugins/FullFamily.py:172
#: plugins/AncestorChart.py:428
msgid "Produces a graphical ancestral tree graph"
msgstr ""
#: plugins/AncestorReport.py:75 plugins/AncestorReport.py:229
#: plugins/FtmStyleAncestors.py:196
msgid "Ahnentafel Report for %s"
msgstr ""
@ -3489,7 +3480,6 @@ msgid " and was buried in %s."
msgstr ""
#: plugins/AncestorReport.py:225 plugins/AncestorReport.py:387
#: plugins/FtmStyleAncestors.py:192
msgid "Ahnentafel Report"
msgstr ""
@ -3497,25 +3487,22 @@ msgstr ""
#: plugins/DescendReport.py:124 plugins/DescendReport.py:283
#: plugins/DetAncestralReport.py:973 plugins/DetDescendantReport.py:851
#: plugins/FamilyGroup.py:344 plugins/FamilyGroup.py:565
#: plugins/FtmStyleAncestors.py:192 plugins/FtmStyleAncestors.py:357
#: plugins/IndivComplete.py:446 plugins/IndivComplete.py:668
#: plugins/IndivSummary.py:317 plugins/IndivSummary.py:501
msgid "Text Reports"
msgstr ""
#: plugins/AncestorReport.py:234 plugins/DetAncestralReport.py:677
#: plugins/FtmStyleAncestors.py:201
msgid "Save Ancestor Report"
msgstr ""
#: plugins/AncestorReport.py:248 plugins/DescendReport.py:148
#: plugins/FamilyGroup.py:408 plugins/FtmStyleAncestors.py:216
#: plugins/IndivComplete.py:502 plugins/IndivSummary.py:345
#: plugins/TimeLine.py:395 plugins/WebPage.py:960
#: plugins/FamilyGroup.py:408 plugins/IndivComplete.py:502
#: plugins/IndivSummary.py:345 plugins/TimeLine.py:395 plugins/WebPage.py:960
msgid "The style used for the title of the page."
msgstr ""
#: plugins/AncestorReport.py:257 plugins/FtmStyleAncestors.py:226
#: plugins/AncestorReport.py:257
msgid "The style used for the generation header."
msgstr ""
@ -4067,7 +4054,7 @@ msgid "Custom Filter Editor"
msgstr ""
#: plugins/FilterEditor.py:398 plugins/FilterEditor.py:411
#: plugins/RelCalc.py:452 plugins/Verify.py:298 plugins/soundgen.py:95
#: plugins/RelCalc.py:452 plugins/Verify.py:302 plugins/soundgen.py:95
msgid "Utilities"
msgstr ""
@ -4083,60 +4070,6 @@ msgstr ""
msgid "The System Filter Editor builds custom filters that can be used by anyone on the system to select people included in reports, exports, and other utilities."
msgstr ""
#: plugins/FtmStyleAncestors.py:73 plugins/GraphViz.py:107
#: plugins/IndivComplete.py:479 plugins/TimeLine.py:363 plugins/WebPage.py:933
#: plugins/WriteGedcom.py:382
msgid "Ancestors of %s"
msgstr ""
#: plugins/FtmStyleAncestors.py:86
msgid "Generation No. %d"
msgstr ""
#: plugins/FtmStyleAncestors.py:120
msgid "born %(date)s in %(place)s"
msgstr ""
#: plugins/FtmStyleAncestors.py:125
msgid "born on %(date)s"
msgstr ""
#: plugins/FtmStyleAncestors.py:130
msgid "born in %(place)s"
msgstr ""
#: plugins/FtmStyleAncestors.py:150
msgid "died %(date)s in %(place)s. "
msgstr ""
#: plugins/FtmStyleAncestors.py:155
msgid "died on %(date)s. "
msgstr ""
#: plugins/FtmStyleAncestors.py:160
msgid "died in %(place)s. "
msgstr ""
#: plugins/FtmStyleAncestors.py:356
msgid "FTM Style Ancestor Report"
msgstr ""
#: plugins/FtmStyleAncestors.py:359
msgid "Produces a textual ancestral report similar to Family Tree Maker."
msgstr ""
#: plugins/FullFamily.py:105 plugins/FullFamily.py:169
msgid "Full Family Chart"
msgstr ""
#: plugins/FullFamily.py:109
msgid "Full Family Chart for %s"
msgstr ""
#: plugins/FullFamily.py:114
msgid "Save Full Family Chart"
msgstr ""
#: plugins/GraphViz.py:60 plugins/GraphViz.py:87
msgid "Single (scaled)"
msgstr ""
@ -4157,6 +4090,11 @@ msgstr ""
msgid "Graphviz File"
msgstr ""
#: plugins/GraphViz.py:107 plugins/IndivComplete.py:479
#: plugins/TimeLine.py:363 plugins/WebPage.py:933 plugins/WriteGedcom.py:382
msgid "Ancestors of %s"
msgstr ""
#: plugins/GraphViz.py:111 plugins/TimeLine.py:367 plugins/WriteGedcom.py:386
msgid "People with common ancestor with %s"
msgstr ""
@ -4738,10 +4676,6 @@ msgstr ""
msgid "%(p1)s is the %(level)dth great grandniece of %(p2)s."
msgstr ""
#: plugins/RelCalc.py:321
msgid "Relationshp to %s"
msgstr ""
#: plugins/RelCalc.py:322 plugins/RelCalc.py:451
msgid "Relationship calculator"
msgstr ""
@ -4878,15 +4812,190 @@ msgstr ""
msgid "Timeline Graph"
msgstr ""
#: plugins/Verify.py:79 plugins/Verify.py:278
#: plugins/Verify.py:83 plugins/Verify.py:282
msgid "Database Verify"
msgstr ""
#: plugins/Verify.py:297
#: plugins/Verify.py:117
msgid ""
"Baptized before birth: %s born %d, baptized %d.\n"
msgstr ""
#: plugins/Verify.py:119
msgid ""
"Baptized late: %s born %d, baptized %d.\n"
msgstr ""
#: plugins/Verify.py:122
msgid ""
"Buried before death: %s died %d, buried %d.\n"
msgstr ""
#: plugins/Verify.py:124
msgid ""
"Buried late: %s died %d, buried %d.\n"
msgstr ""
#: plugins/Verify.py:126
msgid ""
"Died before birth: %s born %d, died %d.\n"
msgstr ""
#: plugins/Verify.py:128
msgid ""
"Died before birth: %s baptized %d, died %d.\n"
msgstr ""
#: plugins/Verify.py:130
msgid ""
"Buried before birth: %s born %d, died %d.\n"
msgstr ""
#: plugins/Verify.py:132
msgid ""
"Buried before birth: %s baptized %d, died %d.\n"
msgstr ""
#: plugins/Verify.py:142
msgid ""
"Old age: %s born %d, died %d, at the age of %d.\n"
msgstr ""
#: plugins/Verify.py:146
msgid "mother "
msgstr ""
#: plugins/Verify.py:149 plugins/Verify.py:160 plugins/Verify.py:166
msgid " was a widow "
msgstr ""
#: plugins/Verify.py:151
msgid "father "
msgstr ""
#: plugins/Verify.py:154
msgid " was a widower "
msgstr ""
#: plugins/Verify.py:156
msgid ""
"Unknown gender for %s.\n"
msgstr ""
#: plugins/Verify.py:157 plugins/Verify.py:163
msgid "parent "
msgstr ""
#: plugins/Verify.py:162
msgid ""
"Ambigous gender for %s.\n"
msgstr ""
#: plugins/Verify.py:170
msgid ""
"Multiple parentage for %s.\n"
msgstr ""
#: plugins/Verify.py:176
msgid ""
"Married often: %s married %d times.\n"
msgstr ""
#: plugins/Verify.py:178
msgid ""
"Old and unmarried: %s died unmarried, at the age of %d years.\n"
msgstr ""
#: plugins/Verify.py:191
msgid ""
"Homosexual marriage: %s in family %s.\n"
msgstr ""
#: plugins/Verify.py:193
msgid ""
"Female husband: %s in family %s.\n"
msgstr ""
#: plugins/Verify.py:195
msgid ""
"Male wife: %s in family %s.\n"
msgstr ""
#: plugins/Verify.py:203
msgid ""
"Husband and wife with the same surname: %s in family %s, and %s.\n"
msgstr ""
#: plugins/Verify.py:221
msgid ""
"Married before birth: %s born %d, married %d to %s.\n"
msgstr ""
#: plugins/Verify.py:224
msgid ""
"Young marriage: %s married at age %d to %s.\n"
msgstr ""
#: plugins/Verify.py:226
msgid ""
"Old marriage: %s married at age %d to %s.\n"
msgstr ""
#: plugins/Verify.py:228
msgid ""
"Married after death: %s died %d, married %d to %s.\n"
msgstr ""
#: plugins/Verify.py:230
msgid ""
"Marriage before birth from previous family: %s married %d to %s, previous birth %d.\n"
msgstr ""
#: plugins/Verify.py:238
msgid ""
"Long widowhood: %s %s %d years before, family %s.\n"
msgstr ""
#: plugins/Verify.py:243
msgid ""
"Long widowhood: %s %s %d years.\n"
msgstr ""
#: plugins/Verify.py:257
msgid ""
"Old %s: %s at age of %d in family %s had a child %s.\n"
msgstr ""
#: plugins/Verify.py:259
msgid ""
"Unborn %s: %s born %d, in family %s had a child %s born %d.\n"
msgstr ""
#: plugins/Verify.py:262
msgid ""
"Young %s: %s at the age of %d in family %s had a child %s.\n"
msgstr ""
#: plugins/Verify.py:266 plugins/Verify.py:268 plugins/Verify.py:270
msgid ""
"Dead %s: %s died %d, but in family %s had a child %s born %d.\n"
msgstr ""
#: plugins/Verify.py:275
msgid ""
"ERRORS:\n"
msgstr ""
#: plugins/Verify.py:277
msgid ""
"WARNINGS:\n"
msgstr ""
#: plugins/Verify.py:301
msgid "Verify the database"
msgstr ""
#: plugins/Verify.py:299
#: plugins/Verify.py:303
msgid "List exceptions to assertions or checks about the database"
msgstr ""