From 0eecf37f31f2ceae2ae72a89649e793e05e0d8af Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 17 Nov 2012 19:00:27 -0200 Subject: [PATCH] Added Ship and Plot modules to translation handling scripts --- src/Tools/updateTranslations.py | 4 +++- src/Tools/updatets.py | 18 +++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/Tools/updateTranslations.py b/src/Tools/updateTranslations.py index 683f44023a..4bee7415f0 100755 --- a/src/Tools/updateTranslations.py +++ b/src/Tools/updateTranslations.py @@ -84,7 +84,9 @@ locations = [["Arch","../Mod/Arch/Resources/translations","../Mod/Arch/Resources ["Robot","../Mod/Robot/Gui/Resources/translations","../Mod/Robot/Gui/Resources/Robot.qrc"], ["Sketcher","../Mod/Sketcher/Gui/Resources/translations","../Mod/Sketcher/Gui/Resources/Sketcher.qrc"], ["StartPage","../Mod/Start/Gui/Resources/translations","../Mod/Start/Gui/Resources/Start.qrc"], - ["Test","../Mod/Test/Gui/Resources/translations","../Mod/Test/Gui/Resources/Test.qrc"]] + ["Test","../Mod/Test/Gui/Resources/translations","../Mod/Test/Gui/Resources/Test.qrc"] + ["Ship","../Mod/Ship/resources/translations","../Mod/Ship/resources/Ship.qrc"] + ["Ship","../Mod/Plot/resources/translations","../Mod/Plot/resources/Plot.qrc"]] def updateqrc(qrcpath,lncode): "updates a qrc file with the given translation entry" diff --git a/src/Tools/updatets.py b/src/Tools/updatets.py index 89d0167fb4..d167452c9b 100644 --- a/src/Tools/updatets.py +++ b/src/Tools/updatets.py @@ -50,13 +50,9 @@ DirFilter = ["^Attic$", "src/Mod/Import", "src/Mod/JtReader", "src/Mod/Sandbox", - "src/Mod/TemplatePyMod", - "src/Mod/Draft", - "src/Mod/Arch", - "src/Mod/OpenSCAD", - "src/Mod/Start"] + "src/Mod/TemplatePyMod"] -# folders that need a special pylupdate command +# python folders that need a special pylupdate command PyCommands = [["src/Mod/Draft", "pylupdate *.py draftlibs/*.py Resources/ui/*.ui -ts Resources/translations/Draft.ts"], ["src/Mod/Arch", @@ -64,7 +60,15 @@ PyCommands = [["src/Mod/Draft", ["src/Mod/OpenSCAD", "pylupdate *.py Resources/ui/*.ui -ts Resources/translations/OpenSCAD.ts"], ["src/Mod/Start", - "pylupdate StartPage/*.py -ts Gui/Resources/translations/StartPage.ts"]] + "pylupdate StartPage/*.py -ts Gui/Resources/translations/StartPage.ts"] + ["src/Mod/Ship", + 'pylupdate4 `find ./ -name "*.py"` -ts resources/translations/Ship.ts'] + ["src/Mod/Plot", + 'pylupdate4 -verbose `find ./ -name "*.py"` -ts resources/translations/Plot.ts']] + +# add python folders to exclude list +for c in PyCommands: + DirFilter.append(c[0]) QMAKE = "" LUPDATE = ""