From: Christian Dywan Date: Mon, 8 Mar 2010 20:12:00 +0000 (+0100) Subject: Skip unavailable languages in LINGUAS X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3cb7c31ec8e54e45f47021ad156550de26c018c;p=midori Skip unavailable languages in LINGUAS --- diff --git a/wscript b/wscript index 0adb7667..bb789a0e 100644 --- a/wscript +++ b/wscript @@ -379,7 +379,10 @@ def write_linguas_file (self): else: podir = '../po' if 'LINGUAS' in Build.bld.env: - linguas = Build.bld.env['LINGUAS'] + files = Build.bld.env['LINGUAS'] + for f in files.split (' '): + if os.path.exists (podir + '/' + f + '.po'): + linguas += f + ' ' else: files = os.listdir (podir) for f in files: