Re: Translations workflow

Diego Bello <[email protected]> Wed, 11 May 2011 11:19:39 -0400
Newsgroups gmane.linux.mandrake.cooker.internationalization
Message-ID <[email protected]>
On Wed, May 11, 2011 at 11:01 AM, Jean-Philippe Braun
<jpbraun-4qZELD6FgxhWk0Htik3J/[email protected]> wrote:
> Hello all,
>
> Since Transifex has been setup I think we need to agree on a new
> workflow for translations.
>
> First I think that Transifex has to be the main source for translations
> because translations will be submited there. This is what Transifex is
> made for, right?. The svn needs to reflect what we have in Transifex. As
> I said in some other mail, submitting new strings in svn and not in
> Transifex (and the opposite) will diverge the svn and Transifex and
> then, the merge of the two will be painful..
>
> So basically what I propose is simple :
> translator -> Transifex -> svn -> package -> distrib
>
> Next the question is in this case, how do we commit PO files to the svn.
> It can be done manually but given the fact Transifex has some
> command-line tools to fetch translations from it, I think it is possible
> to automatize this task. We are all busy no ? ;-)
>
> My idea is to 'record' all new translations done and commit every day
> the files that needs to be updated in the svn from Transifex
> automatically.
>
> Based on that it will be also possible to add a validation step before
> the commit if needed. But I don't know if it's really usefull
>
> So in my idea the basic process is :
> 1. someone add/change some translation string in Transifex
> 2. the translation string is saved in a queue with other information :
> language, resource (mdkonline.pot for example), translator, date,
> status="new"... (all of this will be used to determine which file needs
> to be updated)
> 3. a cron job (script) that runs every day (for example), checks if
> there is new translations to commit in the svn (aka translations with
> status="new" in the queue)
> 4. the script determine what ressource for which language needs to be
> fetch from transifex and then fetch the PO file
> 5. finally the script commit the file
> 6. set the status as "commited"
>
> So that's for my proposal
>
> What do you think ?
>
> JP
>
>

+1

-- 
Diego Bello CarreƱo