From 425f09fd690078fe66cb9a3c80a4b55e56ed6a6f Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 20 Apr 2014 16:33:36 -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 fbb17e5f6..228a56907 100644 --- a/gramps/plugins/textreport/detancestralreport.py +++ b/gramps/plugins/textreport/detancestralreport.py @@ -448,7 +448,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 f0a2aa2c5..1e75cb352 100644 --- a/gramps/plugins/textreport/detdescendantreport.py +++ b/gramps/plugins/textreport/detdescendantreport.py @@ -346,7 +346,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): @@ -460,7 +461,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 9e6235919..c7e0252e1 100644 --- a/gramps/plugins/textreport/familygroup.py +++ b/gramps/plugins/textreport/familygroup.py @@ -125,7 +125,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),