lp-translation-tools (English)
Savvas Radevic
vicedar at gmail.com
Mon Mar 30 09:45:26 BST 2009
Since Launchpad does not yet have a decent launchpadlib that supports
all of Translations/Rosetta sections, I took the initiative to create
a set of tools to help us in the automation of some everyday long
steps in order to make our life easier. :)
The tools can be found here:
https://code.launchpad.net/~medigeek/+junk/lp-translation-tools
http://bazaar.launchpad.net/~medigeek/+junk/lp-translation-tools/files
First two commands are currently:
1) lppwtparser.py, which "grabs" the list from
https://translations.launchpad.net/translations/+products-with-translations.
$ python lppwtparser.py -h
Usage: lppwtparser.py [OPTION]
-h, --help This help message.
-q, --quiet Suppress any extra messages.
Example:
lppwtparser.py -q > translatable_lp_projects.txt
Example of lppwtparser.py output:
http://paste.ubuntu.com/140335/
2) $ python lpprojectparser.py -h
Usage: lpprojectparser.py [OPTION]
-h, --help This help message.
-q, --quiet Suppress any extra messages.
-l, --list=file Read a list of URLs from file.
-u, --url=link Provide a link. (multiple supported)
Required arguments: -l <file> and/or -u <link>
Format of URLs in --list file:
https://translations.launchpad.net/jockey
https://translations.launchpad.net/gnome-app-install
https://translations.launchpad.net/gnome-app-tool
Examples:
lpprojectparser.py -q -l urllist.txt
lpprojectparser.py -u https://translations.launchpad.net/jockey -u
https://translations.launchpad.net/someproject
Example of output:
$ python lpprojectparser.py -l test.txt
Getting: http://translations.launchpad.net/gnome-app-install
Parsing content...
https://translations.launchpad.net/ubuntu/gutsy/+sources/gnome-app-install/+translations
https://translations.launchpad.net/ubuntu/hardy/+sources/gnome-app-install/+translations
https://translations.launchpad.net/ubuntu/jaunty/+sources/gnome-app-install/+translations
Getting: http://translations.launchpad.net/jockey
Parsing content...
https://translations.launchpad.net/jockey/trunk/+translations
https://translations.launchpad.net/ubuntu/intrepid/+sources/jockey/+translations
https://translations.launchpad.net/ubuntu/jaunty/+sources/jockey/+translations
Getting: https://translations.launchpad.net/gnome-app-tool
OOPS! https://translations.launchpad.net/gnome-app-tool (Error 404: Not Found)
More information about the Ubuntu-cy
mailing list