SF.net SVN: geany:[4745] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Mar 8 23:05:59 UTC 2010


Revision: 4745
          http://geany.svn.sourceforge.net/geany/?rev=4745&view=rev
Author:   eht16
Date:     2010-03-08 23:05:58 +0000 (Mon, 08 Mar 2010)

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

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/wscript

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-03-08 22:43:14 UTC (rev 4744)
+++ trunk/ChangeLog	2010-03-08 23:05:58 UTC (rev 4745)
@@ -1,3 +1,9 @@
+2010-03-09  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * wscript:
+   Skip unavailable languages in LINGUAS (thanks to Christian Dywan).
+
+
 2010-03-07  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * wscript, scintilla/*, scintilla/include/*:

Modified: trunk/wscript
===================================================================
--- trunk/wscript	2010-03-08 22:43:14 UTC (rev 4744)
+++ trunk/wscript	2010-03-08 23:05:58 UTC (rev 4745)
@@ -521,7 +521,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 Commits mailing list