]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add 'Show translation source' to docs sidebar (#130355)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sat, 13 Dec 2025 23:03:23 +0000 (23:03 +0000)
committerGitHub <noreply@github.com>
Sat, 13 Dec 2025 23:03:23 +0000 (01:03 +0200)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Doc/tools/templates/customsourcelink.html

index 8e271bca1e08c8545e2b07aefa61ac565fa3158e..0d83ac9f78adb9368eb2db5e82d21c7b2a18c843 100644 (file)
@@ -8,6 +8,12 @@
             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 %}