i18n: convert .pot back to .rst

21 views
Skip to first unread message

anatoly techtonik

unread,
Jul 29, 2014, 3:31:41 PM7/29/14
to sphinx...@googlegroups.com
Hi,

At PyMove3D we used translation service to convert from German to English.
Now we want to use English as default. Is there any way to get .rst files from
this translation?

Jan Ulrich Hasecke

unread,
Jul 30, 2014, 6:06:37 AM7/30/14
to sphinx...@googlegroups.com
The rst-files should be there as source files in _build/html/_sources,
after you build the english translation.

Just rename them from *.txt to *.rst.

juh

--
Software-Dokumentation mit Sphinx
http://www.amazon.de/dp/1497448689/
Paperback: 224 Seiten

ma...@robertlehmann.de

unread,
Aug 13, 2014, 1:28:46 PM8/13/14
to sphinx...@googlegroups.com, juh+sphi...@mailbox.org
Did JUH's reply answer your question?  Because IIUC you want translated reST (ie., source) files, which would require an additional reStructuredText writer.

Building a generic reST writer is complicated (for there is no direct reverse doctree/reST mapping, see StackOverflow.)  It seems some people have —nevertheless— tried, all released under the name rst2rst.  I cannot say anything about the quality of their works.  If you wish to move this into Sphinx (or sphinx.contrib) I'd happily review a pull request.

Cheers,
Robert

anatoly techtonik

unread,
Aug 13, 2014, 2:48:48 PM8/13/14
to sphinx...@googlegroups.com, juh+sphi...@mailbox.org
Thanks.

Yes. It answers the question, but I need some round tuits to validate how
structure of files in _build/html/_sources matches the initial ones.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sphinx-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sphinx-users/7xaqXKey69k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sphinx-users...@googlegroups.com.
> To post to this group, send email to sphinx...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.



--
anatoly t.
Reply all
Reply to author
Forward
0 new messages