svn: r14502
This commit is contained in:
Jérôme Rapinat 2010-02-27 09:30:42 +00:00
parent 05edffadad
commit e5ee70c94b

View File

@ -185,7 +185,7 @@ class RelCalc(Tool.Tool, ManagedWindow.ManagedWindow):
if other_person is None: if other_person is None:
pass pass
elif self.person.handle == other_person.handle: elif self.person.handle == other_person.handle:
rstr = _("%(person)s and %(active_person)s are the same person.")) % { rstr = _("%(person)s and %(active_person)s are the same person.") % {
'person' : p1, 'active_person' : p2 } 'person' : p1, 'active_person' : p2 }
text.append((rstr, "")) text.append((rstr, ""))
elif len(rel_strings) == 0: elif len(rel_strings) == 0:
@ -210,8 +210,8 @@ class RelCalc(Tool.Tool, ManagedWindow.ManagedWindow):
p2c = self.db.get_person_from_handle(common[1]) p2c = self.db.get_person_from_handle(common[1])
p1str = name_displayer.display(p1c) p1str = name_displayer.display(p1c)
p2str = name_displayer.display(p2c) p2str = name_displayer.display(p2c)
commontext = " " + _("Their common ancestors are %(ancestor1)s and %(ancestor2)s.") commontext = " " + _("Their common ancestors are %(ancestor1)s and %(ancestor2)s.") % {
% { 'ancestor1' : p1str, 'ancestor2' : p2str } 'ancestor1' : p1str, 'ancestor2' : p2str }
elif length > 2: elif length > 2:
index = 0 index = 0
commontext = " " + _("Their common ancestors are: ") commontext = " " + _("Their common ancestors are: ")