Skip unavailable languages in LINGUAS
This commit is contained in:
parent
574b00ae50
commit
f3cb7c31ec
1 changed files with 4 additions and 1 deletions
5
wscript
5
wscript
|
@ -379,7 +379,10 @@ def write_linguas_file (self):
|
||||||
else:
|
else:
|
||||||
podir = '../po'
|
podir = '../po'
|
||||||
if 'LINGUAS' in Build.bld.env:
|
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:
|
else:
|
||||||
files = os.listdir (podir)
|
files = os.listdir (podir)
|
||||||
for f in files:
|
for f in files:
|
||||||
|
|
Loading…
Reference in a new issue