[Localization] [Sugar-devel] New tool for tracking L10n commits

Chris Leonard cjlhomeaddress at gmail.com
Mon Sep 5 00:12:01 EDT 2011


The eToys Pootle commits are now landing on the Pootle commits list:

http://lists.sugarlabs.org/archive/pootle-commits/2011-September/date.html

It would be nice if the name of the PO file being committed showed in
the subject line.

cjl

On Sat, Sep 3, 2011 at 6:59 AM, Aleksey Lim <alsroot at activitycentral.org> wrote:
> On Fri, Sep 02, 2011 at 08:19:55PM +0200, Bert Freudenberg wrote:
>> On 02.09.2011, at 18:14, Chris Leonard wrote:
>>
>> > Bert,
>> >
>> > Would it be possible to limit what gets sent to
>> > http://lists.sugarlabs.org/listinfo/pootle-commits to only those
>> > commits made by user Pootle?
>> >
>> > I do not want to flood the list with every eToys commit, only those
>> > from user Pootle.
>>
>> It only forwards those in the Etoys po/ directory, no other Etoys commits.
>>
>> > In addition, Aleksey modified the subject coming from git to the format
>> >
>> > Commit to [chat] by [anderson861.] for [mn]
>> >
>> > The first bracketed entry is the po file name, the second is the
>> > lang-admin using the commit priv and the third is the language code.
>> > This makes it easy t ovisually scan the subject lines, as well as t
>> > ocopy paste from the message list and parse it with a spreadsheet.
>>
>> I can prefix it by "Commit to [etoys]" but the rest of the subject is just the first line of the log message ("Commit from Sugar Labs: Translation System by user cjl.: 7 of 7 messages translated (0 fuzzy).")
>>
>> That is, unless someone can come up with a more suitable post-commit hook invocation than this:
>>
>> svnnotify \
>>        --repos-path "$REPOS" \
>>        --revision "$REV" \
>>        --from commits at etoys.squeak.org \
>>        --to-email-map '^trunk/po/'=pootle-commits at lists.sugarlabs.org \
>>        --subject-prefix 'Commit to [etoys]' \
>>        --header 'Repository: http://etoys.squeak.org/svn' \
>>        --attach-diff \
>>        --max-diff-length 50000
>
> On git.sl.o side, it parses log message for i18n admin name and languages
> come from the list of committed files (if they go to po/ directory).
>
>>
>>
>> - Bert -
>>
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>
> --
> Aleksey
>


More information about the Localization mailing list