From ae81cbc6ee9bf24f83532d8436b66fb41d8eed2f Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 24 Feb 2010 23:07:23 +0000 Subject: [PATCH] Adding named variables to format strings for errors in 'make distcheck' to work. svn: r14467 --- src/plugins/quickview/all_relations.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/quickview/all_relations.py b/src/plugins/quickview/all_relations.py index 63d94b852..09f1dab7c 100644 --- a/src/plugins/quickview/all_relations.py +++ b/src/plugins/quickview/all_relations.py @@ -77,8 +77,8 @@ class AllRelReport(): p1 = self.sdb.name(self.person) if self.person.handle == self.home_person.handle : self.sdoc.paragraph(_FMT_VOID % ( - _("%s and %s are the same person.") % ( p1, p2)) - ) + _("%(person)s and %(active_person)s are the same person."))) % { + 'person' : p1, 'active_person' : p2 } return #check if not a family too: @@ -203,7 +203,8 @@ class AllRelReport(): """ p2 = self.sdb.name(self.home_person) p1 = self.sdb.name(self.person) - self.sdoc.title(_("Relationships of %s to %s") % (p1 ,p2)) + self.sdoc.title(_("Relationships of %(person)s to %(active_person)s")) % { + 'person' : p1 ,'active_person' : p2 } self.sdoc.paragraph("") def print_details_header(self, relations, pers1, pers2,