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

Nick Schermer nick at xfce.org
Fri Jul 5 16:28:42 CEST 2013


On Fri, Jul 5, 2013 at 3:52 PM, Rafael Ferreira <rafael.f.f1 at gmail.com> wrote:
>
>
> 2013/7/5 Kevin Brubeck Unhammer <unhammer at fsfe.org>
>>
>> Nick Schermer <nick at xfce.org> writes:
>>
>> > Xfce is the hub project (a central place to manage the translation
>> > teams). It does not have resources.
>> >
>> > It is fairly easy to do this with the tx client and a bit of scripting
>> > tho.
>>
>> Can I get the list of resources under the xfce hub using the tx client?
>>
>> --
>> Kevin Brubeck Unhammer
>>
>> GPG: 0x766AC60C
>>
>> _______________________________________________
>> Xfce-i18n mailing list
>> Xfce-i18n at xfce.org
>> https://mail.xfce.org/mailman/listinfo/xfce-i18n
>>
>
> 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'.

Good way. If you always use the english language you get the complete
list for sure.

curl -s https://www.transifex.com/projects/p/xfce/language/en/ | grep
/ajax/p/ | cut --output-delimiter . -d/ -f 4,6

These names are usable as project.resource in the tx client.

Nick


More information about the Xfce-i18n mailing list