[docs] "CPython implementation detail:" is removed when contents is translated (issue 28331)

mariatta.wijaya at gmail.com mariatta.wijaya at gmail.com
Wed Oct 5 01:58:24 EDT 2016


http://bugs.python.org/review/28331/diff/18722/Doc/tools/extensions/pyspecific.py
File Doc/tools/extensions/pyspecific.py (right):

http://bugs.python.org/review/28331/diff/18722/Doc/tools/extensions/pyspecific.py#newcode24
Doc/tools/extensions/pyspecific.py:24: import sphinx.locale
seems like it's more of a common pattern to do:

from sphinx.locale import translators

and then line 112 can become:

label = translators['sphinx'].gettext(self.label_text)

but maybe I'm too nitpicky :)

http://bugs.python.org/review/28331/diff/18722/Doc/tools/extensions/pyspecific.py#newcode124
Doc/tools/extensions/pyspecific.py:124:
pnode[0].replace_self(nodes.paragraph('', '', content,
translatable=False))
The line is kinda long.
Do you think it could be broken using continuation line?

Thanks.

http://bugs.python.org/review/28331/


More information about the docs mailing list