Commit Graph

57 Commits

Author SHA1 Message Date
Chris Hennes
9ee6e592b1 Tools: Small improvements to translation extraction
1) Block a problematic BIM file from extraction
2) Implement advanced scanning system to better report problems
3) Limit number of jobs in CrowdIn push to prevent 403 errors
2025-08-25 17:39:40 +02:00
mosfet80
7f3398f320 [Mod] Drawing remove (#20419)
* [Mod] Draw remove

removed deprecated drawing module

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-05-12 17:43:25 +02:00
Chris Hennes
fc782a6c8d Addon Manager: Move to git submodule (#20672) 2025-04-08 16:40:31 +02:00
pre-commit-ci[bot]
c8b72c144e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-03 22:51:14 +00:00
David Carter
810f34ea11 Material: Update translation paths
Correct issue where the translations were being generated from the
wrong source. All translatable files were moved to the MatGui library.
2024-07-15 20:59:10 -05:00
Chris Hennes
15b6ded2aa Tools: Support Qt6 in updatecrowdin.py 2024-07-15 17:53:44 +02:00
Yorik van Havre
eeb78ac5cd Tools: fixed deprecated regex syntax in crowdin tool 2024-07-11 15:05:46 +02:00
Yorik van Havre
99aeb89ddb Translations: Fixed BIM translations 2024-07-10 11:14:02 +02:00
Chris Hennes
d4f780782d Update translations
Arch->BIM is a WIP
2024-05-25 19:11:51 -05:00
Johannes Wüller
0e24e121eb Fix backwards-compatible Qt6 warnings 2024-05-13 11:39:24 -05:00
Chris Hennes
a2b0941540 Update translations
Also removes Web from translation scripts.
2024-05-06 18:17:53 +02:00
Chris Hennes
d8a194a70b Fix Material resource location 2024-04-02 22:52:52 -05:00
Chris Hennes
af131413c5 Update translations 2024-03-25 18:08:22 -05:00
Chris Hennes
d195787a68 Tools: Path -> CAM 2024-03-13 14:04:20 -05:00
PaddleStroke
926490adce Assembly fixes 2024-02-13 08:26:54 +01:00
Chris Hennes
36c7b9db7f Tools: Add check for existence in updatecrowdin.py (#11304) 2023-11-09 12:24:54 -06:00
Chris Hennes
954c2fa03f Update translations 2023-11-09 12:23:56 -06:00
David Carter
58bacb6b40 Material: Material editor enhancements
Continues the work of the material subsystem improvements.

This merge covers the continued development of the material editor. The
primary improvements are in the handling of 2D and 3D array properties.
These properties are now fully editable, and can be saved and restored.

The cards now separate the author and license. These were previously
saved as a single item. Future support will be provided for standard
open source licenses.

Saving operations validate the cards to ensure UUIDs of materials are
considered. Warnings are given when a save could potentially impact the
models, such as saving over a material instead of creating a new
instance.

The editor is still not complete. There are a number of functional
elements, such as drag/drop operations, folder creation, and deletion
operations that need to be added to the main tree. State needs to be
saved and restored to improve the user experience. The appearance
preview also needs significant work. This will be handled in a future
PR.
2023-10-24 12:36:36 -04:00
Yorik van Havre
1c18768634 Merging the Help module (#11008)
* Adding the Help module - fixes 10527, fixes #10512

* Aded Help to pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-16 11:17:06 -05:00
Chris Hennes
28f396cc75 Update translations
Adds the ten units strings from Base as well.
2023-08-16 22:50:39 -05:00
Roy-043
f5595097dd Tools: Avoid dictionary.keys() where possible 2023-08-10 00:50:18 +02:00
Chris Hennes
b54e0d74ff Tools: Modify CrowdIn to only generate QMs when needed 2023-05-21 19:01:42 -05:00
Chris Hennes
11caddf7d8 Tools: Switch to subprocess to handle MinGW runs 2023-05-06 12:28:13 -05:00
Chris Hennes
6da3d0e6b5 Mods: Remove Raytracing
Deprecated. Replaced by 3rd party addon 'Render'.
2023-05-02 12:49:54 -05:00
Chris Hennes
e995575adc Tools: Add Inspection to Updatecrowdin 2023-04-23 21:40:41 -05:00
Chris Hennes
4a7e1b6d9b Tools: Apply pre-commit autoformatting 2023-04-22 13:07:06 -05:00
Chris Hennes
0f9a9e3e56 Tools: Apply Black to updatecrowdin.py 2023-04-18 22:41:19 -05:00
Chris Hennes
ff3de42686 Tools: Add App to CrowdIn upload 2023-04-18 22:37:23 -05:00
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