diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-19 08:48:05 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-20 14:41:44 (GMT) |
commit | f769a6b029779ba3f1308fd4c66a799a7390cb77 (patch) | |
tree | 3754e692ca5760eac6e10cfdb8ac0aae2cdf18ee /Swift/QtUI/SConscript | |
parent | b1836ffb49bd7740dbd7c32bfad04d077e81ecb5 (diff) | |
download | swift-contrib-f769a6b029779ba3f1308fd4c66a799a7390cb77.zip swift-contrib-f769a6b029779ba3f1308fd4c66a799a7390cb77.tar.bz2 |
Make Swift translatable.
Diffstat (limited to 'Swift/QtUI/SConscript')
-rw-r--r-- | Swift/QtUI/SConscript | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript index e52d76a..2255808 100644 --- a/Swift/QtUI/SConscript +++ b/Swift/QtUI/SConscript @@ -161,17 +161,18 @@ commonResources = { } # Translation -translation_sources = [env.File("../Translations/Swift.ts").abspath] +translation_sources = [env.File("../Translations/swift.ts").abspath] for file in os.listdir(Dir("../Translations").abspath) : - if file.startswith("Swift_") and file.endswith(".ts") : + if file.startswith("swift_") and file.endswith(".ts") : lang = file[6:-3] - translation_resource = "../resources/translations/Swift_" + lang + ".qm" - translation_source = "../Translations/Swift_" + lang + ".ts" + translation_resource = "../resources/translations/swift_" + lang + ".qm" + translation_source = "../Translations/swift_" + lang + ".ts" translation_sources.append(env.File(translation_source).abspath) myenv.Qm(translation_resource, translation_source) commonResources["translations"] = commonResources.get("translations", []) + [translation_resource] if ARGUMENTS.get("update_translations", False) : - t = myenv.Command(translation_sources, [], [myenv.Action("$QT4_LUPDATE -I " + env.Dir("#").abspath + " -silent -codecfortr utf-8 -recursive Swift -ts " + " ".join(translation_sources), cmdstr = "$QT4_LUPDATECOMSTR")]) + myenv.Precious(translation_sources) + t = myenv.Command(translation_sources, [], [myenv.Action("$QT4_LUPDATE -I " + env.Dir("#").abspath + " -silent -no-ui-lines -codecfortr utf-8 -recursive Swift -ts " + " ".join(translation_sources), cmdstr = "$QT4_LUPDATECOMSTR")]) myenv.AlwaysBuild(t) if env["PLATFORM"] == "darwin" : |