possible to add comments or hints for translators?

8 views
Skip to first unread message

Pieter Claeys

unread,
Jun 16, 2020, 6:22:08 AM6/16/20
to sphinx-users
Dear community members,


I'd like to know whether it's possible to add hints for translators in sphinx. I did quite some searching but could not find this.

Is there some directive / annotation in the .rst format that will end up as a comment in .po file, associated with a msgId ? 


 

Matt from Documatt

unread,
Jun 16, 2020, 6:59:27 AM6/16/20
to sphinx...@googlegroups.com
It would be amazing, but AFAIK is not possible.

I add comments directed at the translator (called "extracted comments" in terms of gettext) manually. After I generate/update .po files, I add extracted comments to the messages that need some explanation (extracted comments begins with #,).

For example

#, File as a verb, not noun
msgid "File the issue, please"
msgstr ""

Matt
https://blog.documatt.com

--
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/f9e99ad2-e2e0-48bb-91c8-c2643144637eo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages