diff --git a/Doc/conf.py b/Doc/conf.py index 35e0b3eaeafe94..27020fc40e263f 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -17,6 +17,7 @@ # Python specific content from Doc/Tools/extensions/pyspecific.py from pyspecific import SOURCE_URI +from sphinx.locale import _ # General configuration # --------------------- @@ -299,7 +300,7 @@ print("It may be removed in the future\n") # Short title used e.g. for HTML tags. -html_short_title = f'{release} Documentation' +html_short_title = _('%(release)s Documentation') % {'release': release} # Deployment preview information # (See .readthedocs.yml and https://docs.readthedocs.io/en/stable/reference/environment-variables.html) @@ -446,8 +447,8 @@ # Options for Epub output # ----------------------- -epub_author = 'Python Documentation Authors' -epub_publisher = 'Python Software Foundation' +epub_author = _('Python Documentation Authors') +epub_publisher = _('Python Software Foundation') epub_exclude_files = ('index.xhtml', 'download.xhtml') # index pages are not valid xhtml