From f09c5d1a695c5900a9cfe73173c58ea500e44689 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 20 Apr 2014 16:32:25 -0700 Subject: [PATCH] flag some semicolons, for translation in Arabic --- src/plugins/textreport/DetAncestralReport.py | 3 ++- src/plugins/textreport/DetDescendantReport.py | 5 ++++- src/plugins/textreport/FamilyGroup.py | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/textreport/DetAncestralReport.py b/src/plugins/textreport/DetAncestralReport.py index 54ed648a3..8c09ef7a6 100644 --- a/src/plugins/textreport/DetAncestralReport.py +++ b/src/plugins/textreport/DetAncestralReport.py @@ -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), diff --git a/src/plugins/textreport/DetDescendantReport.py b/src/plugins/textreport/DetDescendantReport.py index f081ce8cb..da69dd192 100644 --- a/src/plugins/textreport/DetDescendantReport.py +++ b/src/plugins/textreport/DetDescendantReport.py @@ -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), diff --git a/src/plugins/textreport/FamilyGroup.py b/src/plugins/textreport/FamilyGroup.py index 30c563150..5b3e0693f 100644 --- a/src/plugins/textreport/FamilyGroup.py +++ b/src/plugins/textreport/FamilyGroup.py @@ -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()