Allow modifier % on styledtext

svn: r17578
This commit is contained in:
Benny Malengier
2011-05-27 09:06:35 +00:00
parent b75e636f33
commit a71636ec4e
2 changed files with 40 additions and 4 deletions

View File

@@ -215,10 +215,9 @@ def _find_records(db, filter, callname):
father = db.get_person_from_handle(father_handle)
mother = db.get_person_from_handle(mother_handle)
name = StyledText("").join([
_Person_get_styled_primary_name(father, callname),
_(" and "),
_Person_get_styled_primary_name(mother, callname)])
name = StyledText(_("%(father)s and %(mother)s")) % {
'father': _Person_get_styled_primary_name(father, callname),
'mother': _Person_get_styled_primary_name(mother, callname)}
_record(None, family_mostchildren,
len(family.get_child_ref_list()),