Skip to content

Commit 2e70a19

Browse files
committed
Mark epub_author and epub_publisher for translation
1 parent 1c2e43d commit 2e70a19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
print("It may be removed in the future\n")
301301

302302
# Short title used e.g. for <title> HTML tags.
303-
html_short_title = _(f'{release} Documentation')
303+
html_short_title = _('%(release)s Documentation') % {'release': release}
304304

305305
# Deployment preview information
306306
# (See .readthedocs.yml and https://docs.readthedocs.io/en/stable/reference/environment-variables.html)
@@ -447,8 +447,8 @@
447447
# Options for Epub output
448448
# -----------------------
449449

450-
epub_author = 'Python Documentation Authors'
451-
epub_publisher = 'Python Software Foundation'
450+
epub_author = _('Python Documentation Authors',)
451+
epub_publisher = _('Python Software Foundation',)
452452
epub_exclude_files = ('index.xhtml', 'download.xhtml')
453453

454454
# index pages are not valid xhtml

0 commit comments

Comments
 (0)