Commit Graph

36 Commits

Author SHA1 Message Date
Chris Hennes
b851452557 Tools: Modify CrowdIn to only generate QMs when needed 2023-05-21 19:01:42 -05:00
Chris Hennes
1c7415cd10 Tools: Switch to subprocess to handle MinGW runs 2023-05-06 12:28:13 -05:00
Chris Hennes
0a1b703b5a Mods: Remove Raytracing
Deprecated. Replaced by 3rd party addon 'Render'.
2023-05-02 12:49:54 -05:00
Chris Hennes
a3fbbfa7ba Tools: Add Inspection to Updatecrowdin 2023-04-23 21:40:41 -05:00
Chris Hennes
99cd277a93 Tools: Apply pre-commit autoformatting 2023-04-22 13:07:06 -05:00
Chris Hennes
a5d187c24d Tools: Apply Black to updatecrowdin.py 2023-04-18 22:41:19 -05:00
Chris Hennes
fb6ea28fd5 Tools: Add App to CrowdIn upload 2023-04-18 22:37:23 -05:00
luzpaz
79e150a81b Fix trailing whitespace, typos, headers
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
Yorik van Havre
1563822763 Translations: Merged crowdin strings 2022-03-23 10:37:50 +01:00
luz paz
b18e2a7e35 Tools: fix updatecrowdin.py variable typo [skip ci] 2021-10-06 18:15:53 -04:00
Yorik van Havre
a9e53d92ff Tools: small fix in crowdin script 2021-09-23 17:14:31 +02:00
Yorik van Havre
022bb81754 Tools: Updated crowdin script after PR #5021 2021-09-13 15:40:36 +02:00
Yorik van Havre
0152c09dcf 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
c4e9be172b Tools: allow to run updatets script from updatecrowdin 2021-07-01 13:57:24 +02:00
Yorik van Havre
60895617c6 Tools: small cosmetic fix 2021-06-10 11:53:02 +02:00
luz paz
016989e992 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
577994380c Tools: updated help text 2021-06-03 15:45:55 +02:00
Yorik van Havre
e0188878fb Tools: cosmetic tweaks to updatecrowdin script 2021-05-12 16:36:15 +02:00
Yorik van Havre
4695a0651c Merge branch 'master' into feature-updatecrowdin-api-v2 2021-03-30 13:08:45 +02:00
Chris Hennes
62bfb44a0d [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
b44175f4fe 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
b69864f402 Tools: Added AddonManager to translation scripts 2019-06-17 17:26:19 -03:00
Yorik van Havre
76d9d655cf Tools: Updated translation scripts to handle only the master (untranslated) ts files 2019-02-08 19:15:56 -02:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
Yorik van Havre
d4ace10858 Tools: cosmetic fix in translation scripts 2018-12-18 11:36:46 -02:00
looooo
64002161d6 py3: tools: 2to3 2018-05-23 19:13:54 +02:00
Yorik van Havre
007e31a7fa TechDraw: Updated translation scripts 2017-11-16 17:12:52 -03:00
WandererFan
9c7d93848c Add TechDraw to translation scripts 2017-11-05 18:45:08 +01:00
Yorik van Havre
b16b17ced2 Updated translation strings (and sent to crowdin) 2017-08-31 10:46:55 -03:00
Yorik van Havre
3522deefc9 Crowdin script - save the downloaded file as freecad.zip 2017-06-26 11:30:05 -03:00
triplus
c500bfa9e3 Add Tux to translation scripts 2017-06-11 17:53:11 +02:00
Yorik van Havre
6ffea8cc39 Updated translation tools 2016-03-01 12:34:16 -03:00
Yorik van Havre
4f481d4184 Updated ts & crowdin scripts with latest modules and languages 2015-09-14 14:31:27 -03:00
Yorik van Havre
91079e8f06 Spreadsheet: Added translation file 2015-02-14 12:15:01 -02:00
Yorik van Havre
dd4bd4ecf5 Cosmetic fix in crowdin script 2015-01-26 16:26:28 -02:00
Yorik van Havre
a3974f48a0 Added utility script to manage crowdin stuff 2015-01-23 00:00:47 -02:00