Re: Translation docstrings with gettext

2010-04-08 Thread Peter Otten
sapient wrote: > 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 transla

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 Lie Ryan
On 04/06/10 19:52, sapient wrote: > 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 "

Re: Translation docstrings with gettext

2010-04-06 Thread Gabriel Genellina
En Tue, 06 Apr 2010 06:52:57 -0300, sapient escribió: 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 "dev

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

Re: Translation docstrings with gettext

2010-04-05 Thread Lie Ryan
On 04/05/10 20:31, sapient wrote: > Hello. > > I found several discussions where this question was asked, but was not > answered. Why would you want to translate docstring? Docstring is meant for developers not users. Maintaining a translated docstring is going to be a maintenance hell and will e