diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-04-29 19:18:44 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-04-29 19:18:44 (GMT) |
commit | 14215c76b373ee8bbb7e73d4577f40eec01f5d85 (patch) | |
tree | fb04b07792b67876c26c42b78bbc05bba21f900a /Swift/QtUI | |
parent | 8c0121295e20668da1bf1d07f653834e53cd3672 (diff) | |
download | swift-14215c76b373ee8bbb7e73d4577f40eec01f5d85.zip swift-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/SConscript | 5 |
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" : |