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('