[Xfce4-commits] <midori:master> Skip unavailable languages in LINGUAS
Christian Dywan
noreply at xfce.org
Mon Mar 8 21:14:01 CET 2010
Updating branch refs/heads/master
to f3cb7c31ec8e54e45f47021ad156550de26c018c (commit)
from 574b00ae5009c6c9c9cd714eab8019641fbb2b11 (commit)
commit f3cb7c31ec8e54e45f47021ad156550de26c018c
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Mar 8 21:12:00 2010 +0100
Skip unavailable languages in LINGUAS
wscript | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/wscript b/wscript
index 0adb766..bb789a0 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:
More information about the Xfce4-commits
mailing list