[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Launchpad translations

From: Zero3 <zero3cool_at_zerosplayground.dk>
Date: Tue, 17 Jun 2008 14:09:15 +0200

Hi Lübbe (and everyone else) :)

After asking the LP guys about this 'n that, I think I've got an idea
about how LP translations could be integrated into your workflow with
aid from 2 relatively simply PHP (or similar) scripts.

I don't know if we have any PHP wizards or the like around here who
could give a hand? If not, I'll dig into it myself as soon as I get the
time, though I will have learn as I go, as I haven't messed too much
with PHP in the past.

Script 1) When triggered, requests a TSVN translation export from 
Launchpad through an account reserved just for this "bot" (needs to 
attach a session cookie for automatic login).
This script could be wget/cURL triggered 2-3 hours before the nightly build.
Script 2) When triggered, checks the "bot" mail account for the latest 
export message from LP since last export, fetches the .tar.gz from the 
link in the mail and places it on the web server next to the scripts. 
Then either return "UPDATED"/"NOUPDATE"/"FAILED"/etc.
Depending on the result of the script, the nightly build script could 
then fetch the .tar.gz, unpack it, and commit it back into SVN while 
building the nightly language packs.
The unmaintained languages and a couple of the established ones (I 
volunteer Danish as one of them) could be integrated as a trial to see 
if it works out - assuming you are still hooked on the idea.
LP uses a kind of line-wrapping for .po files (see the answer ticket), 
but It doesn't seem to cause any trouble with .po editors (I figure some 
of them do that as well).
How does that sound?
- Christian
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-06-17 14:09:23 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.