Skip to content

Commit 868bd54

Browse files
committed
Fix regression on previous link translation
1 parent 5733c84 commit 868bd54

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Doc/tools/extensions/meta_navigation.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _splice_flow(
9393
target,
9494
title,
9595
accesskey,
96-
sphinx_gettext(direction),
96+
sphinx_gettext('previous' if direction == 'prev' else 'next'),
9797
)
9898

9999
context['rellinks'] = [
@@ -125,6 +125,7 @@ def add_meta_page_relations(
125125
docname = app.config.root_doc
126126
while docname is not None:
127127
if docname == 'glossary':
128+
# prepend modindex and genindex to glossary
128129
if _has_module_index(app):
129130
flow.append('py-modindex')
130131
flow.extend(_genindex_pages(app, context))

0 commit comments

Comments
 (0)