[Xfce-i18n] transifex – how to download all $LANG.po files

Kevin Brubeck Unhammer unhammer at fsfe.org
Fri Jul 5 16:32:37 CEST 2013


Rafael Ferreira <rafael.f.f1 at gmail.com> writes:

> Here is a lazy shell script to list 'p/<project>/resource/<resource>',
> to get a list of projects and their resource. e.g.
> "p/xfce4-session/resource/master" or
> "p/xfce-panel-plugins/resource/xfce4-weather-plugin"
>
> [code]
> #set lang code here (e.g. pt_BR)
> lang=pt_BR
> subprojects="$(curl
> https://www.transifex.com/projects/p/xfce/language/$lang/ | grep '
> /ajax/p/' | cut -d/ -f3-6)"
> echo $subprojects
> [/code]
>
> With this list you can make a FOR loop for each element of
> $subprojects, do 'tx pull'.

Thanks, that works :-) I guess I should have curled straight away
instead of looking into "view source" … (I did http://sprunge.us/bWVg
btw if that's useful for anyone else.)

-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce-i18n/attachments/20130705/c18343b8/attachment.sig>


More information about the Xfce-i18n mailing list