Skip to content

Commit 6cddf04

Browse files
StanFromIrelandhugovkm-aciek
authored
Add 'Show translation source' to docs sidebar (#130355)
Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Maciej Olko <[email protected]>
1 parent e5a4848 commit 6cddf04

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)