Commit Graph

29 Commits

Author SHA1 Message Date
luzpaz
729685316e Fix trailing whitespace, typos, headers
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
Yorik van Havre
1dd773e7b3 Translations: Merged crowdin strings 2022-03-23 10:37:50 +01:00
luz paz
1bac25de44 Tools: fix updatecrowdin.py variable typo [skip ci] 2021-10-06 18:15:53 -04:00
Yorik van Havre
fafc18158c Tools: small fix in crowdin script 2021-09-23 17:14:31 +02:00
Yorik van Havre
455412ccc7 Tools: Updated crowdin script after PR #5021 2021-09-13 15:40:36 +02:00
Yorik van Havre
419e601482 Tools: Updated crowdin scripts
- Removed updateFromCrowdin script (now merged within updateCrowdin)
- Now automatically installs all languages above 25% translated
- Now updates Gui/Language/Translator.cpp too
2021-09-07 11:27:05 +02:00
Yorik van Havre
909dfa7036 Tools: allow to run updatets script from updatecrowdin 2021-07-01 13:57:24 +02:00
Yorik van Havre
ac4937f59c Tools: small cosmetic fix 2021-06-10 11:53:02 +02:00
luz paz
261c06a052 Fix misc. typos
Found via 
```codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu```
2021-06-03 14:36:21 -04:00
Yorik van Havre
ff26df0a6d Tools: updated help text 2021-06-03 15:45:55 +02:00
Yorik van Havre
c7fb3ff829 Tools: cosmetic tweaks to updatecrowdin script 2021-05-12 16:36:15 +02:00
Yorik van Havre
62e4c7daf1 Merge branch 'master' into feature-updatecrowdin-api-v2 2021-03-30 13:08:45 +02:00
Chris Hennes
e2bb84fd2f [Tools] Fix static analyis issues
This commit addresses issues identified by LGTM for the various
independent (and mostly-independent) files in the Tools subdirectory.
The vast majority of the issues are trivial, and are things like unused
imports or catching BaseException. There was one true bug identified, a
global variable being changed in a function where it was not marked
global, but it only affected output quantity (the variable is named
"VERBOSE"). A couple of other issues identified variables that appear to
represent no-longer-existing options in the code. The options were left,
but a deprecation printout replaces the variable in the event the option
is provided.
2021-02-28 17:53:04 +01:00
Benjamin Nauck
f5b6c20699 Tools: updatecrowdin.py rewrite to support new api
Crowdin has depreciated their old api and will shut it down completely
in december 2021.

What's new:
 * rewritten in Python 3 (drops support for discontinued Python 2)
 * uses Crowdin's api v2
 * runs on vanilla Python 3, (no external modules)
 * automatically adds new translation from the src directory
 * supports api token to be specified in an environment variable
   (Makes GitHub integration easier in the future)
 * requires project id to be explicitly set with an environment variable
   (Makes testing safer)

The api token can be set either in ~/.crowdin-freecad-token similar to
how the old api key was set, or by specifying it in an environment
variable. The later has been added to make it easier with GitHub-Crowdin
integration in the future.

The requirement to explicitly set CROWDIN_PROJECT_ID has been introduced
to avoid accidentally using the main Crowdin project while testing the
script.

The script has been tested on Python versions 3.7, 3.8 and 3.9.

Co-authored-by: Mattias Pierre <github@mattiaspierre.com>
2021-02-28 12:03:41 +01:00
Yorik van Havre
1186bf45e1 Tools: Added AddonManager to translation scripts 2019-06-17 17:26:19 -03:00
Yorik van Havre
4a5cf9c52f Tools: Updated translation scripts to handle only the master (untranslated) ts files 2019-02-08 19:15:56 -02:00
luz.paz
4cfda0c3a5 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
Yorik van Havre
c5939d4476 Tools: cosmetic fix in translation scripts 2018-12-18 11:36:46 -02:00
looooo
25bd2d2ab1 py3: tools: 2to3 2018-05-23 19:13:54 +02:00
Yorik van Havre
9c4b31a4aa TechDraw: Updated translation scripts 2017-11-16 17:12:52 -03:00
WandererFan
17663ebac0 Add TechDraw to translation scripts 2017-11-05 18:45:08 +01:00
Yorik van Havre
fe3f671b81 Updated translation strings (and sent to crowdin) 2017-08-31 10:46:55 -03:00
Yorik van Havre
1eda79cc46 Crowdin script - save the downloaded file as freecad.zip 2017-06-26 11:30:05 -03:00
triplus
780bede885 Add Tux to translation scripts 2017-06-11 17:53:11 +02:00
Yorik van Havre
b389554a30 Updated translation tools 2016-03-01 12:34:16 -03:00
Yorik van Havre
898d27e8d8 Updated ts & crowdin scripts with latest modules and languages 2015-09-14 14:31:27 -03:00
Yorik van Havre
7bbdb0a333 Spreadsheet: Added translation file 2015-02-14 12:15:01 -02:00
Yorik van Havre
2ef086a028 Cosmetic fix in crowdin script 2015-01-26 16:26:28 -02:00
Yorik van Havre
801906ce51 Added utility script to manage crowdin stuff 2015-01-23 00:00:47 -02:00