Skip to content

Commit aa07232

Browse files
miss-islingtonStanFromIrelandhugovkm-aciek
authored
[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]>
1 parent 450f863 commit aa07232

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/tools/templates/customsourcelink.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ <h3>{{ _('This page') }}</h3>
88
rel="nofollow">{{ _('Show source') }}
99
</a>
1010
</li>
11+
{% if language != "en" %}
12+
<li>
13+
<a href="https://github.com/python/python-docs-{{ language }}/blob/{{ version }}/{{ pagename }}.po?plain=1"
14+
rel="nofollow">{{ _('Show translation source') }}</a>
15+
</li>
16+
{% endif %}
1117
</ul>
1218
</div>
1319
{%- endif %}

0 commit comments

Comments
 (0)