From 8e164e29a29f5c47564155539c5ed067a34ce9f8 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 20 Apr 2014 16:34:29 -0700 Subject: [PATCH] flag some semicolons, for translation in Arabic --- gramps/plugins/textreport/detancestralreport.py | 3 ++- gramps/plugins/textreport/detdescendantreport.py | 6 ++++-- gramps/plugins/textreport/familygroup.py | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/textreport/detancestralreport.py b/gramps/plugins/textreport/detancestralreport.py index 262055478..cfd422b47 100644 --- a/gramps/plugins/textreport/detancestralreport.py +++ b/gramps/plugins/textreport/detancestralreport.py @@ -446,7 +446,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/gramps/plugins/textreport/detdescendantreport.py b/gramps/plugins/textreport/detdescendantreport.py index 8d723c1b5..dffe73d3d 100644 --- a/gramps/plugins/textreport/detdescendantreport.py +++ b/gramps/plugins/textreport/detdescendantreport.py @@ -344,7 +344,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): @@ -458,7 +459,8 @@ class DetDescendantReport(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/gramps/plugins/textreport/familygroup.py b/gramps/plugins/textreport/familygroup.py index f448f93d0..0bb2b7b5f 100644 --- a/gramps/plugins/textreport/familygroup.py +++ b/gramps/plugins/textreport/familygroup.py @@ -123,7 +123,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._("; ") attr_type = self._get_type(attr.get_type()) descr += "%(type)s: %(value)s" % { 'type' : self._(attr_type),