Changed some formatted strings to named variables for 'make distcheck' to work properly.

svn: r14483
This commit is contained in:
Rob G. Healey
2010-02-25 15:52:32 +00:00
parent b2cfa9c776
commit 36a91b6cb9
19 changed files with 393 additions and 183 deletions

View File

@@ -95,9 +95,8 @@ def run_fam(database, document, family):
# display the results
sdoc.title(_("Sorted events of family\n %s - %s") %
(sdb.name(sdb.father(family)),
sdb.name(sdb.mother(family))))
sdoc.title(_("Sorted events of family\n %(father)s - %(mother)s")) % {
'father' : sdb.name(sdb.father(family)), 'mother' : sdb.name(sdb.mother(family)) }
sdoc.paragraph("")
stab.columns(_("Family Member"), _("Event Type"),

View File

@@ -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,