Added Ship and Plot modules to translation handling scripts

This commit is contained in:
Yorik van Havre
2012-11-17 19:00:27 -02:00
parent f8e50f2767
commit 0eecf37f31
2 changed files with 14 additions and 8 deletions

View File

@@ -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"

View File

@@ -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 = ""