7276: translate some punctuation marks -- partial

This commit is contained in:
Paul Franklin 2014-08-13 09:22:04 -07:00
parent 5d26c3b6a1
commit 4f85cf0278
3 changed files with 16 additions and 10 deletions

View File

@ -414,7 +414,8 @@ class ArgHandler(object):
print(_("Family Tree \"%s\":") % summary[_("Family Tree")])
for item in sorted(summary):
if item != "Family Tree":
print(" %s: %s" % (item, summary[item]))
# translators: needed for French, ignore otherwise
print(_(" %s: %s") % (item, summary[item]))
sys.exit(0)
if self.list_table:

View File

@ -122,10 +122,10 @@ class FamilyGroup(Report):
# translators: needed for Arabic, ignore otherwise
descr += self._("; ")
attr_type = self._get_type(attr.get_type())
descr += "%(type)s: %(value)s" % {
'type' : self._(attr_type),
'value' : attr.get_value()
}
# translators: needed for French, ignore otherwise
descr += self._("%(str1)s: %(str2)s") % {
'str1' : self._(attr_type),
'str2' : attr.get_value() }
self.doc.start_row()
self.doc.start_cell("FGR-TextContents")

View File

@ -563,10 +563,12 @@ class IndivCompleteReport(Report):
self.doc.start_row()
self.doc.start_cell('IDS-NormalCell')
self.normal_paragraph("%s:" % self._("Name"))
self.normal_paragraph("%s:" % self._("Gender"))
self.normal_paragraph("%s:" % self._("Father"))
self.normal_paragraph("%s:" % self._("Mother"))
# translators: needed for French, ignore otherwise
ignore4 = self._("%s:")
self.normal_paragraph(self._("%s:") % self._("Name"))
self.normal_paragraph(self._("%s:") % self._("Gender"))
self.normal_paragraph(self._("%s:") % self._("Father"))
self.normal_paragraph(self._("%s:") % self._("Mother"))
self.doc.end_cell()
self.doc.start_cell('IDS-NormalCell')
@ -594,7 +596,10 @@ class IndivCompleteReport(Report):
crop=media0.get_rectangle())
else:
self._user.warn(_("Could not add photo to page"),
"%s: %s" % (filename, _('File does not exist')))
# translators: for French, else ignore
_("%(str1)s: %(str2)s") %
{'str1' : filename,
'str2' : _('File does not exist') } )
self.doc.end_cell()
self.doc.end_row()