Re: Translation docstrings with gettext

2010-04-08 Thread sapient
Thank you for your help. Solution with decorators looks well, will try it in near future. I will report here if I solve this problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: Translation docstrings with gettext

2010-04-06 Thread sapient
Lie Ryan, thank you for your answer! > Why would you want to translate docstring? Docstring is meant for > developers not users. I have mentioned that I want to provide API for existing image- processing applicaion in Python. In my case "developers" are "users". Python provides great possibilities

Translation docstrings with gettext

2010-04-05 Thread sapient
Hello. I found several discussions where this question was asked, but was not answered. Now I am creating Python-API for my application, and want create it with translation support, including documentation strings for modules, classes, methods etc. It is simple to translate special-marked string