Adding named variables to format strings for errors in 'make distcheck' to work.

svn: r14455
This commit is contained in:
Rob G. Healey 2010-02-24 22:55:25 +00:00
parent 51ff6e4569
commit d1f26d9f7a

View File

@ -924,9 +924,8 @@ class RelationshipCalculator(object):
#loop, keep one message in storage! #loop, keep one message in storage!
self.__loopDetected = True self.__loopDetected = True
self.__msg += [_("Relationship loop detected:") + \ self.__msg += [_("Relationship loop detected:") + \
_("Person %s connects to himself via %s") % \ _("Person %(person)s connects to himself via %(relation)s")) % {
(person.get_primary_name().get_name(), 'person' : person.get_primary_name().get_name(), 'relation' : rel2[len(rel1):] }
rel2[len(rel1):])]
return return
elif store: elif store:
pmap[person.handle] = [[rel_str], [rel_fam]] pmap[person.handle] = [[rel_str], [rel_fam]]