[Sugar-devel] Add translation of summary info to pootle potgenerator

Aleksey Lim alsroot at sugarlabs.org
Thu Sep 27 15:05:58 EDT 2012


On Tue, Sep 25, 2012 at 11:34:30AM -0300, Gonzalo Odiard wrote:
> Hi Aleksey,
> Attached is a patch to add summary field in activity.info to the strings to
> be translated
> in the pot file generated by pogenerator.py
> 
> I have tried modify the code as little as possible,
> then created another method _get_summary_name() and the activity.info file
> is readed two times. This is not optimum, then if you prefer, I can modify
> the _get_activity_name
> and return a dict. If you have other comment tell me.
> 
> Gonzalo

I did another change (and updated .pot files, thouh, onle few of them
were changed),

    http://git.sugarlabs.org/pootle-helpers/mainline/commit/e64ce283a58bc7e19076bd7ef3110d0a53f78e7f

It adds support also for "description" option. "summary" (one line string)
and "description" (multilined text) fit well to package spec files and
ASLO strings.

Multilined text should be converted by `.replace('\n', ' ')`

-- 
Aleksey


More information about the Sugar-devel mailing list