Transifex and LINGUAS files

Stefan Stuhr xfce4devlist at sstuhr.dk
Tue Aug 18 19:30:31 CEST 2009


tir, 18 08 2009 kl. 12:34 +0200, skrev Nick Schermer:
> I'd love one-liner topics, my turn. I think this will work, but not
> sure since i'm at work:
> 
> LINGUAS=$(ls po/*.po | sed 's:po/\(.*\)\.po$:\1:')

It works; does the job of basename on each line just fine.

This works as well: 
LINGUAS="$(ls po/*.po 2>/dev/null | xargs -I {} basename {} .po)"

Or, if one wants a more compact one line result: 
LINGUAS="$(echo $(ls po/*.po 2>/dev/null | xargs -I {} basename {} .po))"

There sure is a lot of colors available when one wants to paint a bike
shed ;-)

> 
> Nick

Stefan




More information about the Xfce4-dev mailing list