Skip to content

Commit

Permalink
Fix PDF title translation
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Oct 16, 2024
1 parent 2b064a8 commit 4ccd59e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@
show_authors = False
pygments_style = 'sphinx'

# Get the translation of the title of the document
locale_dir = os.path.join(os.path.dirname(__file__), 'locale')
gettext.bindtextdomain('sphinx', locale_dir)
gettext.textdomain('sphinx')
translation = gettext.translation('sphinx', localedir=locale_dir, languages=[language], fallback=True)
document_title = translation.gettext('Documentation')

html_theme = 'sphinx_rtd_theme'
html_logo = 'logo-html.png'
Expand All @@ -67,9 +64,7 @@
OuterLinkColor={HTML}{377abc}',
}

latex_documents = [
(master_doc, 'GlobaLeaks.tex', document_title, '', 'manual'),
]
latex_documents = []

latex_logo = 'logo-latex.png'

Expand All @@ -89,5 +84,9 @@
}

def setup(app):
translation = gettext.translation('sphinx', localedir=locale_dir, languages=[app.config.language], fallback=True)
document_title = translation.gettext('Documentation')
app.config.latex_documents = [(master_doc, 'GlobaLeaks.tex', document_title, '', 'manual'),]

app.add_css_file("custom.css")
app.add_js_file("custom.js")

0 comments on commit 4ccd59e

Please sign in to comment.