A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-February/147451.html below:

[Python-Dev] Can I commit a hack for translation? (Was: Translated Python documentation

[Python-Dev] Can I commit a hack for translation? (Was: Translated Python documentation [Python-Dev] Can I commit a hack for translation? (Was: Translated Python documentationINADA Naoki songofacandy at gmail.com
Fri Feb 24 07:04:10 EST 2017
Thanks, Victor and all.
This thread is very encouraging for me.

Currently, I have a suspended pull request:
https://github.com/python/cpython/pull/195

This pull request (1) fixes "CPython implementation detail:" label is
disappear when it's body is translated, and
(2) make the label translatable.

For (2), I managed to "make gettext" in Doc/ extract the label text
into "sphinx.pot".
So we can translate the label at Transifex.
But I used ugly hack for it.  This pull request "dummy.html" file
which isn't used for building html.
It only contains "{% trans %}CPython implementation detail:{% endtrans %}".

We already did the hack in downstream fork of Japanese translation team.
https://github.com/python-doc-ja/cpython-doc-intl/blob/intl-3.6/Doc/tools/templates/dummy.html

There are one upvote and one downvote for the pull request.  This is
why I suspend the pull request.
Please vote!

a) Commit all.

b) Commit (1), and call gettext() for the "CPython implementation detail:".
   (downstream fork should only add dummy.html).

c) Commit only (1).  (downstream fork should modify pyspecific
extension and add dummy.html)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4