From c41f3923eeacd7a436790789fc5e3dd0b81ef1d8 Mon Sep 17 00:00:00 2001 From: yorikvanhavre Date: Fri, 25 Nov 2011 22:05:05 +0000 Subject: [PATCH] + 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 --- src/Tools/updateTranslations.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Tools/updateTranslations.py b/src/Tools/updateTranslations.py index 79069f304..d61ce736c 100755 --- a/src/Tools/updateTranslations.py +++ b/src/Tools/updateTranslations.py @@ -3,12 +3,16 @@ ''' Usage: - updateTranslations.py LANGCODE [LANGCODE LANGCODE...] + updateTranslations.py [options] LANGCODE [LANGCODE LANGCODE...] Example: ./updateTranslations.py [-d ] 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) so it can find the correct places to put the translation files. The 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 reflect the latest state of the translations. Better make a build before 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 @@ -43,7 +50,10 @@ locations = [["Assembly","../Mod/Assembly/Gui/Resources/translations"], ["Raytracing","../Mod/Raytracing/Gui/Resources/translations"], ["ReverseEngineering","../Mod/ReverseEngineering/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"]]