flag some semicolons, for translation in Arabic

This commit is contained in:
Paul Franklin 2014-04-20 16:32:25 -07:00
parent 17e7135d93
commit f09c5d1a69
3 changed files with 8 additions and 3 deletions

View File

@ -454,7 +454,8 @@ class DetAncestorReport(Report):
attr_list.extend(event_ref.get_attribute_list())
for attr in attr_list:
if text:
text += "; "
# translators: needed for Arabic, ignore otherwise
text += self._("; ")
attrName = self.__get_type(attr.get_type())
text += self._("%(type)s: %(value)s%(endnotes)s") % {
'type' : self._(attrName),

View File

@ -353,7 +353,8 @@ class DetDescendantReport(Report):
if index == 1:
self.doc.write_text(name + "-" + str(index) + ") ")
else:
self.doc.write_text(name + "-" + str(index) + "; ")
# translators: needed for Arabic, ignore otherwise
self.doc.write_text(name + "-" + str(index) + self._("; "))
index -= 1
def write_person(self, key):
@ -468,6 +469,8 @@ class DetDescendantReport(Report):
for attr in attr_list:
if text:
text += "; "
# translators: needed for Arabic, ignore otherwise
text += self._("; ")
attrName = self.__get_type(attr.get_type())
text += self._("%(type)s: %(value)s%(endnotes)s") % {
'type' : self._(attrName),

View File

@ -119,7 +119,8 @@ class FamilyGroup(Report):
if self.includeAttrs:
for attr in event.get_attribute_list():
if descr:
descr += "; "
# translators: needed for Arabic, ignore otherwise
descr += self._("; ")
descr += _("%(type)s: %(value)s") % {
'type' : attr.get_type(),
'value' : attr.get_value()