https://github.com/python/cpython/commit/9d1a83255c74ded62f9f63ad15f8410b4ae4dda0 commit: 9d1a83255c74ded62f9f63ad15f8410b4ae4dda0 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: JulienPalard <[email protected]> date: 2025-10-26T10:07:09+01:00 summary:
[3.13] Standardize translation of `Doc/bugs.rst` (GH-137449) (GH-140282) Standardize translation of `Doc/bugs.rst` (GH-137449) (cherry picked from commit 869bb6948eb501b19db53cb27c523c3203a5ab11) Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/bugs.rst M Doc/conf.py diff --git a/Doc/bugs.rst b/Doc/bugs.rst index 5d0f68ca69675e..1d27579e53f4ef 100644 --- a/Doc/bugs.rst +++ b/Doc/bugs.rst @@ -19,6 +19,12 @@ If you find a bug in this documentation or would like to propose an improvement, please submit a bug report on the :ref:`issue tracker <using-the-tracker>`. If you have a suggestion on how to fix it, include that as well. +.. only:: translation + + If the bug or suggested improvement concerns the translation of this + documentation, submit the report to the + `translation’s repository <TRANSLATION_REPO_>`_ instead. + You can also open a discussion item on our `Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_. diff --git a/Doc/conf.py b/Doc/conf.py index a8bef97df19b8a..84efd870cdeaee 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -445,6 +445,25 @@ # https://github.com/sphinx-doc/sphinx/issues/12359 epub_use_index = False +# translation tag +# --------------- + +language_code = None +for arg in sys.argv: + if arg.startswith('language='): + language_code = arg.split('=', 1)[1] + +if language_code: + tags.add('translation') # noqa: F821 + + rst_epilog += f"""\ +.. _TRANSLATION_REPO: https://github.com/python/python-docs-{language_code.replace("_", "-").lower()} +""" # noqa: F821 +else: + rst_epilog += """\ +.. _TRANSLATION_REPO: https://github.com/python +""" + # Options for the coverage checker # -------------------------------- _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
