Translation - How to get one pot files instead of many

33 views
Skip to first unread message

Arthur

unread,
Oct 24, 2019, 4:32:05 AM10/24/19
to sphinx-users
Hello,

I see on the sphinx-doc repo that there is only one pot file for the english version, instead of many. See https://github.com/sphinx-doc/sphinx/tree/master/sphinx/locale.

When I use gettext, I get one pot file per RST file. How can I just get one document? Would it make Transifex integration easier to have one pot file? Or do I need to declare a bulk mapping?

Thanks!

Luc Saffre

unread,
Oct 26, 2019, 3:29:11 AM10/26/19
to sphinx...@googlegroups.com, Arthur
I confirm that question. I didn't yet start translating one of my projects because I felt this issue as well. I thought what will happen if I move content from one page to another page, or when I change the page name? What must I know to avoid losing my translation work?
Seems that this needs more documentation.
Luc
--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/ccd79615-9668-4d68-b4c0-b4857e027c30%40googlegroups.com.

Komiya Takeshi

unread,
Oct 26, 2019, 5:26:32 AM10/26/19
to sphinx...@googlegroups.com
Hi,

Enabling gettext_compact option will combine translations on same
directory into single .pot file. It does not support to combine whole
of project to single one. But it will help you.

Note: The pot file on sphinx repo is a message catalog for Sphinx
itself. It is used to translate messages on console, templates and so
on.

Thanks,
Takeshi KOMIYA

2019年10月24日(木) 17:32 Arthur <arthur....@gmail.com>:

Komiya Takeshi

unread,
Oct 26, 2019, 5:28:19 AM10/26/19
to sphinx...@googlegroups.com, Arthur
Hi Luc,

I think translation memory feature will help your case. For example,
transifex supports it. So it can refill translation easily if contents
are moved to other file.

Thanks,
Takeshi KOMIYA

2019年10月26日(土) 16:29 Luc Saffre <luc.s...@gmail.com>:
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/ca8f0ccc-93b1-23a2-de65-80fd5e4dd017%40gmail.com.

Luc Saffre

unread,
Nov 9, 2019, 11:00:10 PM11/9/19
to sphinx...@googlegroups.com, Komiya Takeshi, Arthur
Hi Takeshi,

aha, thanks, that was new for me. I now read about translation memory.
Do you know whether https://translatewiki.net also has this feature? I would prefer translatewiki over transifex because transifex uses proprietary software.

Luc

Komiya Takeshi

unread,
Nov 16, 2019, 10:04:03 PM11/16/19
to Luc Saffre, sphinx...@googlegroups.com, Arthur
Hi,

Sorry, I don't know that site...

2019年11月10日(日) 13:00 Luc Saffre <luc.s...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages