From 14215c76b373ee8bbb7e73d4577f40eec01f5d85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 29 Apr 2012 21:18:44 +0200
Subject: Do one update_translations lupdate call for every translation.

This allows only updating one translation file.

diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript
index 68a0782..f944b43 100644
--- a/Swift/QtUI/SConscript
+++ b/Swift/QtUI/SConscript
@@ -228,8 +228,9 @@ if ARGUMENTS.get("update_translations", False) :
 	remove_obsolete_option = ""
 	if ARGUMENTS.get("remove_obsolete_translations", False) :
 		remove_obsolete_option = " -no-obsolete"
-	t = myenv.Command(translation_sources, [], [myenv.Action("$QT4_LUPDATE -I " + env.Dir("#").abspath + remove_obsolete_option + " -silent -no-ui-lines -codecfortr utf-8 -recursive Swift -ts " + " ".join(translation_sources), cmdstr = "$QT4_LUPDATECOMSTR")])
-	myenv.AlwaysBuild(t)
+	for translation_source in filter(lambda x: not x.endswith("_en.ts"), translation_sources) :
+		t = myenv.Command([translation_source], [], [myenv.Action("$QT4_LUPDATE -I " + env.Dir("#").abspath + remove_obsolete_option + " -silent -no-ui-lines -codecfortr utf-8 -recursive Swift -ts " + translation_source, cmdstr = "$QT4_LUPDATECOMSTR")])
+		myenv.AlwaysBuild(t)
 
 # NSIS installation script
 if env["PLATFORM"] == "win32" :
-- 
cgit v0.10.2-6-g49f6