[Freeipa-devel] [PATCH] Make 'ipa help' localizable.

Pavel Zuna pzuna at redhat.com
Tue Feb 1 13:16:37 UTC 2011


For a long time, I was trying to find a way to localize python docstrings, that 
we use to generate the built-in documentation system. Unfortunately, python 
docstrings aren't meant to be localized and therefore I had to use a dirty 
trick: setting the __doc__ variable manually to a gettext instance.

There is one major disadvantage: tools that generate developer documentation 
(like epydoc) won't display docstrings set like this.

One solution would be to have docstrings twice in each module: once normally and 
once set using __doc__, but that would be very ugly.

This patch doesn't update .po files, because it's already big as it is. They are 
regenerated automatically anyway.

Ticket #179

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pzuna-66-helpi18n.patch
Type: text/x-patch
Size: 26416 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110201/962cf4ba/attachment.bin>


More information about the Freeipa-devel mailing list