From f3cb7c31ec8e54e45f47021ad156550de26c018c Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 8 Mar 2010 21:12:00 +0100 Subject: [PATCH] Skip unavailable languages in LINGUAS --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: