From 176493c011c9b94b29d7fbbad14862a3dc24ba2c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 14 Jun 2014 13:39:28 -0700 Subject: [PATCH] add translated-output option to B.R. TOC and Index reports --- gramps/plugins/docgen/cairodoc.py | 4 ++-- gramps/plugins/docgen/odfdoc.py | 4 ++-- .../plugins/textreport/alphabeticalindex.py | 20 ++++++++++--------- gramps/plugins/textreport/tableofcontents.py | 20 ++++++++++--------- 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/gramps/plugins/docgen/cairodoc.py b/gramps/plugins/docgen/cairodoc.py index a985f65ac..29f5f6e09 100644 --- a/gramps/plugins/docgen/cairodoc.py +++ b/gramps/plugins/docgen/cairodoc.py @@ -235,7 +235,7 @@ def write_toc(toc, doc): return doc.start_paragraph('TOC-Title') - doc.write_text(_('Contents')) + doc.write_text(doc.toc_title) doc.end_paragraph() doc.start_table('toc', 'TOC-Table') @@ -268,7 +268,7 @@ def write_index(index, doc): return doc.start_paragraph('IDX-Title') - doc.write_text(_('Index')) + doc.write_text(doc.index_title) doc.end_paragraph() doc.start_table('index', 'IDX-Table') diff --git a/gramps/plugins/docgen/odfdoc.py b/gramps/plugins/docgen/odfdoc.py index aa7b092b7..15b168031 100644 --- a/gramps/plugins/docgen/odfdoc.py +++ b/gramps/plugins/docgen/odfdoc.py @@ -1631,7 +1631,7 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc): """ Insert a Table of Contents at this point in the document. """ - title = _('Contents') + title = self.toc_title self.cntnt.write('') self.cntnt.write('') self.cntnt.write('