diff --git a/src/Tools/updatecrowdin.py b/src/Tools/updatecrowdin.py index 4a0e946dd..ffa712117 100755 --- a/src/Tools/updatecrowdin.py +++ b/src/Tools/updatecrowdin.py @@ -75,7 +75,9 @@ files = [ ["Arch.ts", "/Mod/Arch/Resources/translations/Arch.ts"], ["StartPage.ts", "/Mod/Start/Gui/Resources/translations/StartPage.ts"], ["Test.ts", "/Mod/Test/Gui/Resources/translations/Test_de.ts"], ["Web.ts", "/Mod/Web/Gui/Resources/translations/Web.ts"], - ["Spreadsheet.ts", "/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet.ts"] ] + ["Spreadsheet.ts", "/Mod/Spreadsheet/Gui/Resources/translations/Spreadsheet.ts"], + ["Path.ts", "/Mod/Path/Gui/Resources/translations/Path.ts"], + ] # handler for the command responses diff --git a/src/Tools/updateTranslations.py b/src/Tools/updatefromcrowdin.py similarity index 96% rename from src/Tools/updateTranslations.py rename to src/Tools/updatefromcrowdin.py index ef4582e25..fc4d78955 100755 --- a/src/Tools/updateTranslations.py +++ b/src/Tools/updatefromcrowdin.py @@ -26,11 +26,11 @@ ''' Usage: - updateTranslations.py [options] [LANGCODE] [LANGCODE LANGCODE...] + updatefromcrowdin.py [options] [LANGCODE] [LANGCODE LANGCODE...] Example: - ./updateTranslations.py [-d ] fr nl pt_BR + ./updatefromcrowdin.py [-d ] fr nl pt_BR Options: @@ -88,9 +88,11 @@ locations = [["Arch","../Mod/Arch/Resources/translations","../Mod/Arch/Resources ["Ship","../Mod/Ship/resources/translations","../Mod/Ship/resources/Ship.qrc"], ["Plot","../Mod/Plot/resources/translations","../Mod/Plot/resources/Plot.qrc"], ["Web","../Mod/Web/Gui/Resources/translations","../Mod/Web/Gui/Resources/Web.qrc"], - ["Spreadsheet","../Mod/Spreadsheet/Gui/Resources/translations","../Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc"]] + ["Spreadsheet","../Mod/Spreadsheet/Gui/Resources/translations","../Mod/Spreadsheet/Gui/Resources/Spreadsheet.qrc"], + ["Path","../Mod/Path/Gui/Resources/translations","../Mod/Path/Gui/Resources/Path.qrc"], + ] -default_languages = "af zh-CN zh-TW hr cs nl fi fr de hu ja no pl pt-PT ro ru sr es-ES sv-SE uk it pt-BR" +default_languages = "af zh-CN zh-TW hr cs nl fi fr de hu ja no pl pt-PT ro ru sr es-ES sv-SE uk it pt-BR el sk tr" 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 36b5442f8..0011e5930 100644 --- a/src/Tools/updatets.py +++ b/src/Tools/updatets.py @@ -64,7 +64,10 @@ PyCommands = [["src/Mod/Draft", ["src/Mod/Ship", 'pylupdate `find ./ -name "*.py"` -ts resources/translations/Ship.ts'], ["src/Mod/Plot", - 'pylupdate `find ./ -name "*.py"` -ts resources/translations/Plot.ts']] + 'pylupdate `find ./ -name "*.py"` -ts resources/translations/Plot.ts'], + ["src/Mod/Path", + 'pylupdate `find ./ -name "*.py"` -ts Gui/Resources/translations/Path.ts'], + ] # add python folders to exclude list for c in PyCommands: