cpython: b1615165fa4a (original) (raw)

Mercurial > cpython

changeset 100046:b1615165fa4a 3.5

doc: i18n HTML templates Issue #25907: Use {% trans %} tags in HTML templates to ease the translation of the documentation. The tag comes from Jinja templating system, used by Sphinx. Patch written by Julien Palard. [#25907]

Victor Stinner victor.stinner@gmail.com
date Fri, 22 Jan 2016 18:00:05 +0100
parents 8e0a736b82ff
children 5af5b36c197e e86515294283
files Doc/tools/templates/indexcontent.html Doc/tools/templates/indexsidebar.html Doc/tools/templates/layout.html
diffstat 3 files changed, 59 insertions(+), 59 deletions(-)[+] [-] Doc/tools/templates/indexcontent.html 78 Doc/tools/templates/indexsidebar.html 22 Doc/tools/templates/layout.html 18

line wrap: on

line diff

--- a/Doc/tools/templates/indexcontent.html +++ b/Doc/tools/templates/indexcontent.html @@ -1,59 +1,59 @@ {% extends "defindex.html" %} {% block tables %}

--- a/Doc/tools/templates/indexsidebar.html +++ b/Doc/tools/templates/indexsidebar.html @@ -1,17 +1,17 @@ -

Download

-

Download these documents

-

Docs for other versions

+

{% trans %}Download{% endtrans %}

+

{% trans %}Download these documents{% endtrans %}

+

{% trans %}Docs for other versions{% endtrans %}

--- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -6,7 +6,7 @@

  • {%- if versionswitcher is defined %} {{ release }}
  • @@ -79,24 +79,24 @@ {% endblock %} {% block footer %}

    [](#l3.31) {% endblock %}[](#l3.32) {% block sidebarsourcelink %}[](#l3.33) {%- if show_source and has_source and sourcename %}[](#l3.34)

    {{ _('This Page') }}

    [](#l3.35) [](#l3.42) {%- endif %}[](#l3.43) {% endblock %}[](#l3.44)