Re: Translation docstrings with gettext

"Martin v. Löwis" <[email protected]> Wed, 07 Apr 2010 16:23:48 +0200
Newsgroups gmane.comp.python.internationalization
Message-ID <[email protected]>
> So, question is: How to translate docstrings in my example?

You need to modify the help() function, to not directly render the
docstring, but to first pass it through gettext. It might be best to
replace inspect.cleandoc for that.

Regards,
Martin