fix string FIXME, add context for translation, as string freeze is over

svn: r22414
This commit is contained in:
Paul Franklin 2013-05-23 17:20:19 +00:00
parent d32a91ed90
commit f99dfec5bc

View File

@ -255,16 +255,14 @@ class IndivCompleteReport(Report):
self.doc.end_cell() self.doc.end_cell()
self.doc.end_row() self.doc.end_row()
def write_p_entry(self, label, parent, rel, pmark=None): def write_p_entry(self, label, parent_name, rel_type, pmark=None):
self.doc.start_row() self.doc.start_row()
self.normal_cell(label) self.normal_cell(label)
if parent_name:
if parent: # for example (a stepfather): John Smith, relationship: Step
text = '%(parent)s, %(separator)s %(relation)s' % { text = self._('%(parent-name)s, relationship: %(rel-type)s') % {
'parent': parent, 'parent-name' : parent_name,
# FIXME this should be lower-case: 'rel-type' : self._(rel_type)}
'separator': self._('Relationship:'),
'relation': self._(rel)}
self.normal_cell(text, mark=pmark) self.normal_cell(text, mark=pmark)
else: else:
self.normal_cell('') self.normal_cell('')