[josm-dev] How does JOSM interface with Launchpad?

Dirk Stöcker openstreetmap at dstoecker.de
Sat Sep 19 09:34:44 BST 2009


On Fri, 18 Sep 2009, Ævar Arnfjörð Bjarmason wrote:

> I'm interested in getting Launchpad updated more often since I
> sometimes want to translate new features without waiting a week.
>
> I suppose the reason Launchpad isn't updated more regularly is that
> it's a chore to do so. What exactly is the procedure? Perhaps I can
> write a program to completely automate it?
>
> I found launchpad.pl in applications/editors/josm/i18n in OSM's SVN.
> When run it produces a tarball like
> "launchpad_upload_josm_2009-09-18T17_52_42.tgz" which presumably is
> manually uploaded to launchpad.
>
> Where is it uploaded?
>
> How are all the .po files retrieved from Launchpad every week and put
> back into JOSM? Does someone go to
> https://translations.launchpad.net/josm/trunk/+export then request a
> download, wait until the tarball shows up in the inbox, manually
> extract it, build and commit josm-translate.jar to SVN?
>
> is there a better way to do it? It's relatively painful to script
> something which requires E-Mail to work (as opposed to just a web
> form)

Steps:
- Do svn up for JOSM and all plugins
- Go to launchpad and log in.
- Go to exports and request all po's, wait for e-mail
- Take the URL from e-mail and pass it to ./launchpad.pl
- Upload the resulting tar-file to launchpad.
- Checkin changes in SVN and JOSM (need account for both to do so).

When your problem is only to have the ability to translate new strings:
- svn update JOSM and all plugins
- "ant" in i18n
- Upload the .pot file to launchpad

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)


More information about the josm-dev mailing list