2003-07-23 Tim Waugh <twaugh@redhat.com>

* src/plugins/Ancestors.py: More translation bits.  Include
        source author and publication information.


svn: r1924
This commit is contained in:
Tim Waugh 2003-07-23 13:52:17 +00:00
parent cd577b1a38
commit a5c11501bb
2 changed files with 20 additions and 17 deletions

View File

@ -1,3 +1,7 @@
2003-07-23 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py: More translation bits. Include
source author and publication information.
2003-07-22 Alex Roitman <shura@alex.neuro.umn.edu> 2003-07-22 Alex Roitman <shura@alex.neuro.umn.edu>
* src/SelectChild.py: Replace braces with parentheses in named format * src/SelectChild.py: Replace braces with parentheses in named format
string parameter. string parameter.

View File

@ -28,6 +28,7 @@ import gtk
# gramps modules # gramps modules
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import const
import Report import Report
import TextDoc import TextDoc
import RelLib import RelLib
@ -135,6 +136,15 @@ class ComprehensiveAncestorsReport (Report.Report):
for source in self.sources: for source in self.sources:
self.doc.start_paragraph ("AR-Entry") self.doc.start_paragraph ("AR-Entry")
self.doc.write_text ("[%d] %s" % (i, source.getTitle ())) self.doc.write_text ("[%d] %s" % (i, source.getTitle ()))
author = source.getAuthor ()
pubinfo = source.getPubInfo ()
extra = author
if pubinfo:
if extra:
extra += ', '
extra += pubinfo
if extra:
self.doc.write_text ('; %s' % extra)
self.doc.end_paragraph () self.doc.end_paragraph ()
note = source.getNote () note = source.getNote ()
@ -376,7 +386,7 @@ class ComprehensiveAncestorsReport (Report.Report):
name = event.getName () name = event.getName ()
description = event.getDescription () description = event.getDescription ()
if name != 'Birth' and name != 'Death' and name != 'Marriage': if name != 'Birth' and name != 'Death' and name != 'Marriage':
info += name info += const.display_pevent (name)
if description: if description:
info += ': ' + description info += ': ' + description
description = None description = None
@ -449,7 +459,7 @@ class ComprehensiveAncestorsReport (Report.Report):
ret = '' ret = ''
born_info = self.event_info (person.getBirth ()) born_info = self.event_info (person.getBirth ())
if born_info: if born_info:
ret = ", born" + born_info ret = ", " + _("born") + born_info
died_info = self.event_info (person.getDeath ()) died_info = self.event_info (person.getDeath ())
if died_info: if died_info:
@ -458,22 +468,10 @@ class ComprehensiveAncestorsReport (Report.Report):
else: else:
ret += ', ' ret += ', '
ret += 'died' + died_info ret += _('died') + died_info
return ret return ret
def Pronoun (self, person):
if person.getGender () == RelLib.Person.female:
return 'She'
else:
return 'He'
def son_or_daughter (self, person):
if person.getGender () == RelLib.Person.female:
return 'daughter'
else:
return 'son'
def parents_of (self, person): def parents_of (self, person):
gender = person.getGender () gender = person.getGender ()
if gender == RelLib.Person.female: if gender == RelLib.Person.female:
@ -713,8 +711,9 @@ class ComprehensiveAncestorsReport (Report.Report):
for name in names: for name in names:
paras.append ((self.doc.start_paragraph, ['AR-Details'])) paras.append ((self.doc.start_paragraph, ['AR-Details']))
paras.append ((self.doc.write_text, [name.getType () + ': ' + paras.append ((self.doc.write_text,
name.getRegularName ()])) [const.InverseNameTypesMap[name.getType ()] +
': ' + name.getRegularName ()]))
paras.append ((self.doc.end_paragraph, [])) paras.append ((self.doc.end_paragraph, []))
for event in events: for event in events: