SF.net SVN: geany-plugins:[1167] trunk/geany-plugins/wscript

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Mar 15 14:08:47 UTC 2010


Revision: 1167
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1167&view=rev
Author:   eht16
Date:     2010-03-15 14:08:47 +0000 (Mon, 15 Mar 2010)

Log Message:
-----------
Skip unavailable languages in LINGUAS (thanks to Christian Dywan).

Modified Paths:
--------------
    trunk/geany-plugins/wscript

Modified: trunk/geany-plugins/wscript
===================================================================
--- trunk/geany-plugins/wscript	2010-03-15 14:01:58 UTC (rev 1166)
+++ trunk/geany-plugins/wscript	2010-03-15 14:08:47 UTC (rev 1167)
@@ -372,7 +372,10 @@
 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()


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list