]> spindle.queued.net Git - midori/commitdiff
Skip unavailable languages in LINGUAS
authorChristian Dywan <christian@twotoasts.de>
Mon, 8 Mar 2010 20:12:00 +0000 (21:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 8 Mar 2010 20:13:06 +0000 (21:13 +0100)
wscript

diff --git a/wscript b/wscript
index 0adb76670cd9b157b39e9edfaf638f928da099ef..bb789a0e4c8353768440d28a3858c1b73a68c826 100644 (file)
--- 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: