Skip to content

Commit 701cd02

Browse files
rffontenellehugovk
authored andcommitted
pythongh-122384: Mark strings from Download page for translation (python#122385)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent e995f4a commit 701cd02

File tree

1 file changed

+42
-32
lines changed

1 file changed

+42
-32
lines changed

Doc/tools/templates/download.html

+42-32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "layout.html" %}
2-
{% set title = 'Download' %}
2+
{% set title = _('Download') %}
33
{% if daily is defined %}
44
{% set dlbase = pathto('archives', 1) %}
55
{% else %}
@@ -11,58 +11,68 @@
1111
{% endif %}
1212

1313
{% block body %}
14-
<h1>Download Python {{ release }} Documentation</h1>
14+
<h1>{% trans %}Download Python {{ release }} Documentation{% endtrans %}</h1>
1515

16-
{% if last_updated %}<p><b>Last updated on: {{ last_updated }}.</b></p>{% endif %}
16+
{% if last_updated %}<p><b>{% trans %}Last updated on: {{ last_updated }}.{% endtrans %}</b></p>{% endif %}
1717

18-
<p>To download an archive containing all the documents for this version of
19-
Python in one of various formats, follow one of links in this table.</p>
18+
<p>{% trans %}To download an archive containing all the documents for this version of
19+
Python in one of various formats, follow one of links in this table.{% endtrans %}</p>
2020

2121
<table class="docutils">
22-
<tr><th>Format</th><th>Packed as .zip</th><th>Packed as .tar.bz2</th></tr>
23-
<tr><td>PDF (US-Letter paper size)</td>
24-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-letter.zip">Download</a> (ca. 17 MiB)</td>
25-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-letter.tar.bz2">Download</a> (ca. 17 MiB)</td>
22+
<tr>
23+
<th>{% trans %}Format{% endtrans %}</th>
24+
<th>{% trans %}Packed as .zip{% endtrans %}</th>
25+
<th>{% trans %}Packed as .tar.bz2{% endtrans %}</th>
2626
</tr>
27-
<tr><td>PDF (A4 paper size)</td>
28-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-a4.zip">Download</a> (ca. 17 MiB)</td>
29-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-pdf-a4.tar.bz2">Download</a> (ca. 17 MiB)</td>
27+
<tr>
28+
<td>{% trans %}PDF (US-Letter paper size){% endtrans %}</td>
29+
<td>{% trans download_size="17" %}<a href="{{ dlbase }}/python-{{ release }}-docs-pdf-letter.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
30+
<td>{% trans download_size="17" %}<a href="{{ dlbase }}/python-{{ release }}-docs-pdf-letter.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
3031
</tr>
31-
<tr><td>HTML</td>
32-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-html.zip">Download</a> (ca. 13 MiB)</td>
33-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-html.tar.bz2">Download</a> (ca. 8 MiB)</td>
32+
<tr>
33+
<td>{% trans %}PDF (A4 paper size){% endtrans %}</td>
34+
<td>{% trans download_size="17" %}<a href="{{ dlbase }}/python-{{ release }}-docs-pdf-a4.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
35+
<td>{% trans download_size="17" %}<a href="{{ dlbase }}/python-{{ release }}-docs-pdf-a4.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
3436
</tr>
35-
<tr><td>Plain text</td>
36-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-text.zip">Download</a> (ca. 4 MiB)</td>
37-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-text.tar.bz2">Download</a> (ca. 3 MiB)</td>
37+
<tr>
38+
<td>{% trans %}HTML{% endtrans %}</td>
39+
<td>{% trans download_size="13" %}<a href="{{ dlbase }}/python-{{ release }}-docs-html.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
40+
<td>{% trans download_size="8" %}<a href="{{ dlbase }}/python-{{ release }}-docs-html.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
3841
</tr>
39-
<tr><td>Texinfo</td>
40-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-texinfo.zip">Download</a> (ca. 9 MiB)</td>
41-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-texinfo.tar.bz2">Download</a> (ca. 7 MiB)</td>
42+
<tr>
43+
<td>{% trans %}Plain text{% endtrans %}</td>
44+
<td>{% trans download_size="4" %}<a href="{{ dlbase }}/python-{{ release }}-docs-text.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
45+
<td>{% trans download_size="3" %}<a href="{{ dlbase }}/python-{{ release }}-docs-text.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
46+
</tr>
47+
<tr>
48+
<td>{% trans %}Texinfo{% endtrans %}</td>
49+
<td>{% trans download_size="9" %}<a href="{{ dlbase }}/python-{{ release }}-docs-texinfo.zip">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
50+
<td>{% trans download_size="7" %}<a href="{{ dlbase }}/python-{{ release }}-docs-texinfo.tar.bz2">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
4251
</tr>
43-
<tr><td>EPUB</td>
44-
<td><a href="{{ dlbase }}/python-{{ release }}-docs.epub">Download</a> (ca. 6 MiB)</td>
52+
<tr>
53+
<td>{% trans %}EPUB{% endtrans %}</td>
54+
<td>{% trans download_size="6" %}<a href="{{ dlbase }}/python-{{ release }}-docs.epub">Download</a> (ca. {{ download_size }} MiB){% endtrans %}</td>
4555
<td></td>
4656
</tr>
4757
</table>
4858

49-
<p>These archives contain all the content in the documentation.</p>
59+
<p>{% trans %}These archives contain all the content in the documentation.{% endtrans %}</p>
5060

5161

52-
<h2>Unpacking</h2>
62+
<h2>{% trans %}Unpacking{% endtrans %}</h2>
5363

54-
<p>Unix users should download the .tar.bz2 archives; these are bzipped tar
64+
<p>{% trans %}Unix users should download the .tar.bz2 archives; these are bzipped tar
5565
archives and can be handled in the usual way using tar and the bzip2
5666
program. The <a href="https://infozip.sourceforge.net">Info-ZIP</a> unzip program can be
5767
used to handle the ZIP archives if desired. The .tar.bz2 archives provide the
58-
best compression and fastest download times.</p>
68+
best compression and fastest download times.{% endtrans %}</p>
5969

60-
<p>Windows users can use the ZIP archives since those are customary on that
61-
platform. These are created on Unix using the Info-ZIP zip program.</p>
70+
<p>{% trans %}Windows users can use the ZIP archives since those are customary on that
71+
platform. These are created on Unix using the Info-ZIP zip program.{% endtrans %}</p>
6272

6373

64-
<h2>Problems</h2>
74+
<h2>{% trans %}Problems{% endtrans %}</h2>
6575

66-
<p>If you have comments or suggestions for the Python documentation, please send
67-
email to <a href="mailto:[email protected]">[email protected]</a>.</p>
76+
<p>{% trans %}If you have comments or suggestions for the Python documentation, please send
77+
email to <a href="mailto:[email protected]">[email protected]</a>.{% endtrans %}</p>
6878
{% endblock %}

0 commit comments

Comments
 (0)