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

* src/plugins/Ancestors.py: Mark the easy translation strings.


svn: r1920
This commit is contained in:
Tim Waugh 2003-07-22 11:40:03 +00:00
parent d1c1c2e4da
commit d89cb456de
2 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,5 @@
2003-07-22 Tim Waugh <twaugh@redhat.com> 2003-07-22 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py: Mark the easy translation strings.
* src/RelLib.py: Made Person.probablyAlive() take partners into * src/RelLib.py: Made Person.probablyAlive() take partners into
consideration if all else fails. consideration if all else fails.
* src/plugins/WriteGedcom.py, src/plugins/gedcomexport.glade: New * src/plugins/WriteGedcom.py, src/plugins/gedcomexport.glade: New

View File

@ -117,7 +117,7 @@ class ComprehensiveAncestorsReport (Report.Report):
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.start_paragraph ("AR-Heading") self.doc.start_paragraph ("AR-Heading")
self.doc.write_text ("Generation 1") self.doc.write_text (_("Generation 1"))
self.doc.end_paragraph () self.doc.end_paragraph ()
self.write_paragraphs (self.person (self.start, suppress_children = 1, self.write_paragraphs (self.person (self.start, suppress_children = 1,
@ -128,7 +128,7 @@ class ComprehensiveAncestorsReport (Report.Report):
if len (self.sources) > 0: if len (self.sources) > 0:
self.doc.start_paragraph ("AR-Heading") self.doc.start_paragraph ("AR-Heading")
self.doc.write_text ("Sources") self.doc.write_text (_("Sources"))
self.doc.end_paragraph () self.doc.end_paragraph ()
i = 1 i = 1
@ -188,7 +188,7 @@ class ComprehensiveAncestorsReport (Report.Report):
children = family.getChildList () children = family.getChildList ()
if len (children): if len (children):
ret.append ((self.doc.start_paragraph, ['AR-ChildTitle'])) ret.append ((self.doc.start_paragraph, ['AR-ChildTitle']))
ret.append ((self.doc.write_text, ['Their children:'])) ret.append ((self.doc.write_text, [_('Their children:')]))
ret.append ((self.doc.end_paragraph, [])) ret.append ((self.doc.end_paragraph, []))
for child in children: for child in children:
@ -322,7 +322,7 @@ class ComprehensiveAncestorsReport (Report.Report):
if len (photos) == 0: if len (photos) == 0:
ret.append ((self.doc.start_cell, ["AR-NoPhoto"])) ret.append ((self.doc.start_cell, ["AR-NoPhoto"]))
ret.append ((self.doc.start_paragraph, ["AR-NoPhotoText"])) ret.append ((self.doc.start_paragraph, ["AR-NoPhotoText"]))
ret.append ((self.doc.write_text, ["(no photo)"])) ret.append ((self.doc.write_text, [_("(no photo)")]))
ret.append ((self.doc.end_paragraph, [])) ret.append ((self.doc.end_paragraph, []))
ret.append ((self.doc.end_cell, [])) ret.append ((self.doc.end_cell, []))
else: else:
@ -336,7 +336,8 @@ class ComprehensiveAncestorsReport (Report.Report):
ret.append ((self.doc.start_paragraph, ["AR-Entry"])) ret.append ((self.doc.start_paragraph, ["AR-Entry"]))
ret.append ((self.doc.write_text, [name])) ret.append ((self.doc.write_text, [name]))
if short_form: if short_form:
ret.append ((self.doc.write_text, [" (mentioned above)."])) ret.append ((self.doc.write_text,
[_(" (mentioned above).")]))
else: else:
ret.append ((self.doc.write_text, [bits])) ret.append ((self.doc.write_text, [bits]))
@ -414,10 +415,10 @@ class ComprehensiveAncestorsReport (Report.Report):
return info return info
def address_info (self, address): def address_info (self, address):
info = 'Address: %s %s %s %s' % (address.getStreet (), info = _('Address:') + ' %s %s %s %s' % (address.getStreet (),
address.getCity (), address.getCity (),
address.getState (), address.getState (),
address.getCountry ()) address.getCountry ())
info = info.rstrip () info = info.rstrip ()
date = address.getDate () date = address.getDate ()
@ -640,7 +641,7 @@ class ComprehensiveAncestorsReport (Report.Report):
def inline_notes (self, person): def inline_notes (self, person):
name_note = person.getPrimaryName ().getNote () name_note = person.getPrimaryName ().getNote ()
if not (name_note == '' or name_note.find ('\n') != -1): if not (name_note == '' or name_note.find ('\n') != -1):
return ' Note about their name: ' + name_note return _(' Note about their name: ') + name_note
note = person.getNote () note = person.getNote ()
if not (note == '' or note.find ('\n') != -1): if not (note == '' or note.find ('\n') != -1):
return ' ' + note return ' ' + note
@ -673,9 +674,8 @@ class ComprehensiveAncestorsReport (Report.Report):
if (len (events) + len (addresses) + len (names)) > 0: if (len (events) + len (addresses) + len (names)) > 0:
paras.append ((self.doc.start_paragraph, ['AR-SubEntry'])) paras.append ((self.doc.start_paragraph, ['AR-SubEntry']))
paras.append ((self.doc.write_text, paras.append ((self.doc.write_text,
["More about " + [_("More about %(name):") %
self.first_name_or_nick (person) + {'name': self.first_name_or_nick (person)}]))
":"]))
paras.append ((self.doc.end_paragraph, [])) paras.append ((self.doc.end_paragraph, []))
for name in names: for name in names: