« Return to Thread: Translation problems

Re: Translation problems

by Niels Baggesen-2 :: Rate this Message:

| View in Thread

On Sat, Feb 02, 2008 at 03:47:39PM +0100, Maarten Deen wrote:
> I've looked into the script and it goes wrong on line 55:
> if [ $1 != "-all" ] && [ ! test -e ../locale/$2 ] ; then

That surely looks strange - and more complicated than it has to.

I would write it

if [ $1 != "-all" -a ! -e ../locale/$2 ] ; then

no need to fork out two incanations of test

/Niels

--
Niels Baggesen - @home - Ã…rhus - Denmark - nba@...
The purpose of computing is insight, not numbers   ---   R W Hamming

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gallery-translations mailing list
Gallery-translations@...
https://lists.sourceforge.net/lists/listinfo/gallery-translations

 « Return to Thread: Translation problems