[Numpy-discussion] Internationalization of numpy/scipy docstrings...

Nathaniel Smith njs at pobox.com
Sat May 19 20:16:21 EDT 2012


On May 19, 2012 11:04 PM, "Tim Cera" <tim at cerazone.net> wrote:
> A user would then install a language kit, maybe something like scikits
and access the translated docstring with a new 'np.info'.  As near as I can
figure, Python 'help' command can't be replaced by something else, so
'help' would always display the English docstring.

help() just returns the __doc__ attribute, but a large number of numpy's
__doc__ attributes are set up by code at import time, so in principle even
these could be run through gettext pretty easily.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120520/4adb95a0/attachment.html>


More information about the NumPy-Discussion mailing list