Can I commit a hack for translation? (Was: Translated Python documentation
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/te... 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)
participants (3)
-
Berker Peksağ
-
INADA Naoki
-
Victor Stinner