summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-29 19:18:44 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-29 19:18:44 (GMT)
commit14215c76b373ee8bbb7e73d4577f40eec01f5d85 (patch)
treefb04b07792b67876c26c42b78bbc05bba21f900a /Swift/QtUI
parent8c0121295e20668da1bf1d07f653834e53cd3672 (diff)
downloadswift-contrib-14215c76b373ee8bbb7e73d4577f40eec01f5d85.zip
swift-contrib-14215c76b373ee8bbb7e73d4577f40eec01f5d85.tar.bz2
Do one update_translations lupdate call for every translation.
This allows only updating one translation file.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/SConscript5
1 files changed, 3 insertions, 2 deletions
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" :