Skip unavailable languages in LINGUAS

This commit is contained in:
Christian Dywan 2010-03-08 21:12:00 +01:00
parent 574b00ae50
commit f3cb7c31ec

View file

@ -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: