[Xfce4-commits] <gigolo:master> Improve generation of po/LINGUAS file

Enrico Tröger noreply at xfce.org
Thu Apr 29 18:04:02 CEST 2010


Updating branch refs/heads/master
         to 515b3f7279bde3c0ad25e06680c115ef2df07ab3 (commit)
       from 8a1d9f5f0259f15391c912e029bc8df446045a0d (commit)

commit 515b3f7279bde3c0ad25e06680c115ef2df07ab3
Author: Enrico Tröger <enrico at xfce.org>
Date:   Thu Apr 29 18:01:29 2010 +0200

    Improve generation of po/LINGUAS file

 wscript |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/wscript b/wscript
index 973841e..668dc5e 100644
--- a/wscript
+++ b/wscript
@@ -89,7 +89,10 @@ def set_options(opt):
 def write_linguas_file(self):
 	linguas = ''
 	if 'LINGUAS' in Build.bld.env:
-		linguas = Build.bld.env['LINGUAS']
+		files = Build.bld.env['LINGUAS']
+		for po_filename in files.split(' '):
+			if os.path.exists('po/%s.po' % po_filename):
+				linguas += '%s ' % po_filename
 	else:
 		files = os.listdir('%s/po' % self.path.abspath())
 		files.sort()



More information about the Xfce4-commits mailing list