+ updated crowdin update script with latest modules

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5185 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
yorikvanhavre 2011-11-25 22:05:05 +00:00
parent bd66405b3f
commit c41f3923ee

View File

@ -3,12 +3,16 @@
''' '''
Usage: Usage:
updateTranslations.py LANGCODE [LANGCODE LANGCODE...] updateTranslations.py [options] LANGCODE [LANGCODE LANGCODE...]
Example: Example:
./updateTranslations.py [-d <directory>] fr nl pt_BR ./updateTranslations.py [-d <directory>] fr nl pt_BR
Options:
-d : specifies a directory containing the freecad.zip file.
This command must be run from its current source tree location (/src/Tools) This command must be run from its current source tree location (/src/Tools)
so it can find the correct places to put the translation files. The so it can find the correct places to put the translation files. The
latest translations from crowdin will be downloaded, unzipped and put to latest translations from crowdin will be downloaded, unzipped and put to
@ -20,6 +24,9 @@ NOTE! The crowdin site only allows to download "builds" (zipped archives)
which must be built prior to downloading. This means a build might not which must be built prior to downloading. This means a build might not
reflect the latest state of the translations. Better make a build before reflect the latest state of the translations. Better make a build before
using this script! using this script!
You can specify a directory with the -d option if you already downloaded
and the build.
''' '''
import sys, os, shutil, tempfile, zipfile, getopt, StringIO import sys, os, shutil, tempfile, zipfile, getopt, StringIO
@ -43,7 +50,10 @@ locations = [["Assembly","../Mod/Assembly/Gui/Resources/translations"],
["Raytracing","../Mod/Raytracing/Gui/Resources/translations"], ["Raytracing","../Mod/Raytracing/Gui/Resources/translations"],
["ReverseEngineering","../Mod/ReverseEngineering/Gui/Resources/translations"], ["ReverseEngineering","../Mod/ReverseEngineering/Gui/Resources/translations"],
["Robot","../Mod/Robot/Gui/Resources/translations"], ["Robot","../Mod/Robot/Gui/Resources/translations"],
["Sketcher","../Mod/Sketcher/Gui/Resources/translations"]] ["Sketcher","../Mod/Sketcher/Gui/Resources/translations"],
["Arch","../Mod/Arch/Resources/translations"],
["StartPage","../Mod/Start/Gui/Resources/translations"],
["Test","../Mod/Test/Gui/Resources/translations"]]
tweaks = [["pt-BR","pt"],["es-ES","es"],["sv-SE","se"],["zh-CN","zh"]] tweaks = [["pt-BR","pt"],["es-ES","es"],["sv-SE","se"],["zh-CN","zh"]]