From 1186bf45e18db86196dae5b05fbdb020944aaf90 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 17 Jun 2019 17:26:19 -0300 Subject: [PATCH] Tools: Added AddonManager to translation scripts --- src/Tools/updatecrowdin.py | 3 ++- src/Tools/updatefromcrowdin.py | 6 +++--- src/Tools/updatets.py | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Tools/updatecrowdin.py b/src/Tools/updatecrowdin.py index 7370c5d6ca..2ce9c30de2 100755 --- a/src/Tools/updatecrowdin.py +++ b/src/Tools/updatecrowdin.py @@ -53,7 +53,8 @@ Example: import sys,os,xml.sax,pycurl,StringIO -files = [ ["Arch.ts", "/Mod/Arch/Resources/translations/Arch.ts"], +files = [ ["AddonManager.ts", "/Mod/AddonManager/Resources/translations/AddonManager.ts"], + ["Arch.ts", "/Mod/Arch/Resources/translations/Arch.ts"], ["Assembly.ts", "/Mod/Assembly/Gui/Resources/translations/Assembly.ts"], ["draft.ts", "/Mod/Draft/Resources/translations/Draft.ts"], ["Drawing.ts", "/Mod/Drawing/Gui/Resources/translations/Drawing.ts"], diff --git a/src/Tools/updatefromcrowdin.py b/src/Tools/updatefromcrowdin.py index d74246935e..368e50bec6 100755 --- a/src/Tools/updatefromcrowdin.py +++ b/src/Tools/updatefromcrowdin.py @@ -68,10 +68,10 @@ import sys, os, shutil, tempfile, zipfile, getopt, StringIO, re crowdinpath = "http://crowdin.net/download/project/freecad.zip" -# locations list contains Module name, relative path to translation folder, relative path to qrc file, and optionally -# a python rc file +# locations list contains Module name, relative path to translation folder and relative path to qrc file -locations = [["Arch","../Mod/Arch/Resources/translations","../Mod/Arch/Resources/Arch.qrc"], +locations = [["AddonManager","../Mod/AddonManager/Resources/translations","../Mod/AddonManager/Resources/AddonManager.qrc"], + ["Arch","../Mod/Arch/Resources/translations","../Mod/Arch/Resources/Arch.qrc"], ["Assembly","../Mod/Assembly/Gui/Resources/translations","../Mod/Assembly/Gui/Resources/Assembly.qrc"], ["draft","../Mod/Draft/Resources/translations","../Mod/Draft/Resources/Draft.qrc"], ["Drawing","../Mod/Drawing/Gui/Resources/translations","../Mod/Drawing/Gui/Resources/Drawing.qrc"], diff --git a/src/Tools/updatets.py b/src/Tools/updatets.py index 76fba10e5c..4018264993 100755 --- a/src/Tools/updatets.py +++ b/src/Tools/updatets.py @@ -106,6 +106,8 @@ PyCommands = [["src/Mod/Draft", 'lconvert -i Gui/Resources/translations/Imagepy.ts Gui/Resources/translations/Image.ts -o Gui/Resources/translations/Image.ts'], ["src/Mod/Image", 'rm Gui/Resources/translations/Imagepy.ts'], + ["src/Mod/AddonManager", + "pylupdate *.py *.ui -ts Resources/translations/AddonManager.ts"], ] # add python folders to exclude list