----- "Asgeir Frimannsson" <asgeirf@xxxxxxxxx> wrote: > On Tue, Sep 30, 2008 at 3:13 AM, Dimitris Glezos <dimitris@xxxxxxxxxx> > wrote: > > 2008/9/29 Paul W. Frields <stickster@xxxxxxxxx>: > >> On Mon, Sep 29, 2008 at 05:19:14PM +0530, Ankitkumar Rameshchandra > Patel wrote: > >>> Dimitris Glezos wrote: > >>>> 2008/9/26 Paul W. Frields <stickster@xxxxxxxxx>: > >>>> > >>>>> On Fri, Sep 26, 2008 at 12:08:31PM +0300, Dimitris Glezos > wrote: > >>>>> > >>>>>> We'll need the usual steps followed to add these modules to > transifex: > >>>>>> > >>>>>> http://fedoraproject.org/wiki/L10N/FAQ#add-transifex > >>>>>> > >>>>>> The most important ones are having 'transif' added to the > respective > >>>>>> account system groups and notifying us with which <VCS root, > module, > >>>>>> branch> to use. One bug report for all moved Docs would be > sufficient, > >>>>>> and we can re-open it when a new module has been moved. > >>>>>> > >>>> All 7 docs projects have been registered and enabled [1] in > Transifex. > >>>> > >>>> https://translate.fedoraproject.org/submit/module/ > >>>> > >>> > >>> Can we get all 7 docs projects enabled in DL as well? > >> > >> I think Dimitris mentioned earlier that Damned Lies won't support > >> Publican's multiple POT files. It would be great if Red Hat > I18n/L10n > >> would collaborate with the community to help pave the way for > >> statistics reporting for these repos. I don't know whether that > means > >> fixing part of DL, or simply accelerating the rate at which > >> statistical support in Tx is written. I know Dimitris, Asgeir, > and > >> any of the other Tx developers would be thrilled to have some > >> assistance with this. > > > > Patches are welcome with champagnes and fireworks, as always. :D > > > >> In the meantime, Dimitris also suggested a workaround using some > sort > >> of simple Python script. I doubt that's been written yet, maybe > >> someone can help there? > > > > Here's a sample skeleton for such a script/scenario, for anyone > who'd > > like to actually code it. > > > > ----------------------- > > == Get the source == > > > > First time: > > $ project-list = ['about', 'release-notes'] > > $ for p in project-list: > > git clone git://git.fedoraproject.org/git/{p}.git > > > > Later, to pull new changes: > > $ for p in project-list: > > git fetch && ... > > > > == Calculate statistics == > > $ wget http://.../fedora-docs-l10n-script.py > > $ python fedora-docs-l10n-script.py pt_BR > > pt_BR statistics: > > about: 80% (115T, 40F, 10U) > > release-notes: 80% (115T, 40F, 10U) > > ----------------------- > > If I remember correctly, publican actually has a 'genearate > translation statistics' make target that can even generate HTML. > > Would it be ok If I set up a cron job that: > 1) Puts translation statistics on a public web page (to make it > simple, e.g. my fedorapeople web space) > 2) Sends updated statistics to fedora-trans-list daily, or even after > each 'submission' depending on how much we want to spam that list... > > In addition, we could add a link to this stats through the front page > of translate.fedoraproject.org > > Comments on this workflow is welcome, but I'll try to make sure we at > least have some statistics for our documentation SOON. > > I guess the fedora infrastructure is in 'freeze' mode, so I'm not > sure > how easy it would be to make the script run inside the > infrastructure... But the main concern now is giving translators some > statistics :) > > But first for some breakfast... Could anyone review the attached script for converting release-notes to a publican-friendly PO structure? Figured I'd learn ABC in bash scripting while I was at it... I could send out a git patch, but it makes it a bit hard to see what I was doing... cheers, asgeir
Attachment:
publicanl10n.tar.gz
Description: GNU Zip compressed data
-- fedora-docs-list mailing list fedora-docs-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-docs-list