[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-03-04 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-03-04 Thread Julien
Changes by Julien : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread STINNER Victor
STINNER Victor added the comment: > @haypo: And here is the patch for 2.7, and here is the result of the patch > applied and new msgids translated: http://www.afpy.org/doc/python/2.7/ Thanks. I also pushed this change. @INADA Naoki, @Julien: Don't hesitate to bug me if you want to push other

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72edb81e456b by Victor Stinner in branch '2.7': doc: i18n HTML templates https://hg.python.org/cpython/rev/72edb81e456b -- ___ Python tracker _

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread Julien
Julien added the comment: @naoki Not sure, but with those patches you'll may be able to translate the documentation without forking it. Like we're doing here: https://github.com/afpy/python_doc_fr Also did you contacted the upstream to ask them if they want to cross-link your versions ? Sphin

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread Julien
Julien added the comment: @haypo: And here is the patch for 2.7, and here is the result of the patch applied and new msgids translated: http://www.afpy.org/doc/python/2.7/ -- Added file: http://bugs.python.org/file41699/trans-tags-in-2.7.patch ___ Py

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-23 Thread INADA Naoki
INADA Naoki added the comment: O/T Hi, Julien. I'm maintainer of Python Document Japanese translation project. (http://docs.python.jp/ ) We use Transifex to ease many volunteers working on translating. https://www.transifex.com/python-doc-ja/python-35/dashboard/ Repository of Python 3.5 Jap

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-22 Thread STINNER Victor
STINNER Victor added the comment: I applied 3 patches to branches 3.5 and default (3.6), but the patches don't apply cleanly to Python 2.7. Can you please cook patches for Python 2.7? (I suggest to focus on translation of the Python 3 documentation, but for me, it's cheap to apply such patch

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1615165fa4a by Victor Stinner in branch '3.5': doc: i18n HTML templates https://hg.python.org/cpython/rev/b1615165fa4a New changeset 5af5b36c197e by Victor Stinner in branch 'default': Merge 3.5 (i18n doc, issue #25907) https://hg.python.org/cpytho

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-22 Thread Julien
Julien added the comment: And tags for the layout template. -- Added file: http://bugs.python.org/file41694/i18n-tags-in-layout.patch ___ Python tracker ___ _

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-22 Thread Julien
Julien added the comment: And here are the i18n tags for the sidebar, thanks @haypo it was a good idea to translate them too ^-^ -- Added file: http://bugs.python.org/file41693/i18n-tags-in-sidebar.patch ___ Python tracker

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-21 Thread STINNER Victor
STINNER Victor added the comment: > @haypo I used the ``{trans}`` ``{endtrans}`` syntax because [Sphinx uses > Jinja](http://www.sphinx-doc.org/en/stable/templating.html) and [``{trans}`` > is the Jinja syntax for > internationalisation](http://jinja.pocoo.org/docs/dev/templates/#i18n) Oh ok,

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-21 Thread Julien
Julien added the comment: That's also the actual syntax used by existing Sphinx templates: mandark@windhowl$ grep -r '{% trans' ~/.local/lib/python3.4/site-packages/sphinx_rtd_theme/ footer.html:{% trans path=pathto('copyright'), copyright=copyright|e %}© Copyright {{ copyrigh

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-21 Thread Julien
Julien added the comment: @haypo I used the ``{trans}`` ``{endtrans}`` syntax because [Sphinx uses Jinja](http://www.sphinx-doc.org/en/stable/templating.html) and [``{trans}`` is the Jinja syntax for internationalisation](http://jinja.pocoo.org/docs/dev/templates/#i18n) So ``{trans}`` is the

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-01-21 Thread STINNER Victor
STINNER Victor added the comment: The patch only changes Doc/tools/templates/indexcontent.html. (Simplified) example of change on Doc/tools/templates/indexcontent.html: "What's new in Python {{ version }}?" becomes "{% trans %}What's new in Python {{ version }}?{% endtrans %}" I'm not

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2015-12-19 Thread Julien
Julien added the comment: For emacs users, this `query-replace-regex` comes handy to add trans tags around strings, if one want to apply them to another file / version: >\([^>^J]*[a-zA-z][^>^J]*\)< -> >{% trans %}\1{% endtrans %} Note that ^J is obtained typing C-q C-j. -- __

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2015-12-18 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2015-12-18 Thread Julien
New submission from Julien: o/ # Context I'm trying to resuscitate the translation of Python doc in french, [python_doc_fr](https://github.com/AFPy/python_doc_fr). I finished the translation of `tutorial.po` (that was partially translated by the AFPY team around 2012) and now working on `glo