https://github.com/python/cpython/commit/aa07232c6a6eb101b94ef3c5811cef5a61dc23cf
commit: aa07232c6a6eb101b94ef3c5811cef5a61dc23cf
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-13T23:09:13Z
summary:

[3.13] Add 'Show translation source' to docs sidebar (GH-130355) (#142687)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Maciej Olko <[email protected]>

files:
M Doc/tools/templates/customsourcelink.html

diff --git a/Doc/tools/templates/customsourcelink.html 
b/Doc/tools/templates/customsourcelink.html
index 8e271bca1e08c8..0d83ac9f78adb9 100644
--- a/Doc/tools/templates/customsourcelink.html
+++ b/Doc/tools/templates/customsourcelink.html
@@ -8,6 +8,12 @@ <h3>{{ _('This page') }}</h3>
             rel="nofollow">{{ _('Show source') }}
         </a>
       </li>
+      {% if language != "en" %}
+      <li>
+        <a href="https://github.com/python/python-docs-{{ language }}/blob/{{ 
version }}/{{ pagename }}.po?plain=1"
+           rel="nofollow">{{ _('Show translation source') }}</a>
+      </li>
+      {% endif %}
     </ul>
   </div>
 {%- endif %}

_______________________________________________
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]

Reply via email to