From dc175ea1a1f4f0dca13f668cfbfdbb08338ce158 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 14 Jun 2014 13:38:26 -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('