Commit Graph

71 Commits

Author SHA1 Message Date
mos
4ce1d9d11c removed pylupdate4 used in qt4 2023-11-06 11:18:07 -06:00
Yorik van Havre
31b0896cf0 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
b2042f36c6 Tools: Fix Start translation TS file name 2023-09-07 23:05:25 +02:00
Chris Hennes
58cf9f3212 Update translations
Adds the ten units strings from Base as well.
2023-08-16 22:50:39 -05:00
Chris Hennes
be890eb29f Tools: Add exclusion list to lupdate calls 2023-05-05 18:41:51 -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
99cd277a93 Tools: Apply pre-commit autoformatting 2023-04-22 13:07:06 -05:00
Yorik van Havre
12b106b347 [Tools] fixed encoding error in updatets script 2023-04-20 13:53:21 +02:00
Chris Hennes
2dabffbf6c Tools: Apply Black formatter to updatets.py 2023-04-16 20:54:32 -05:00
Chris Hennes
e363a27c97 Tools/updatets.py: clean up file formatting issues. 2023-04-16 20:54:22 -05:00
ronnystandtke
144b2158dd Removed Image workbench from directories list (#9275) 2023-04-15 15:06:05 -05:00
mosfet80
bed7b76524 remove Python2 code 2023-03-04 17:51:43 -06: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
c29d2faf52 Tools: Fixed updatets script not picking py files 2022-12-22 13:34:31 +01:00
Yorik van Havre
635a1a1f47 Tools: Fixed minor bug in updatets 2022-12-22 10:34:34 +01:00
Kuzemko Alexsandr
2eb55d48c7 [App] Fix of untranslated first document's name (#7156)
* Change no need function newDocument("Unnamed") call to variant without parameter. "Unnamed" set in App newDocument function instead.
* Refactor New Document command to run without parameter.
* Translate new document's userName. Internal name = "Unnamed".
* Crowdin Add to updatets.py App.ts. Create new file App.ts
* Fix error where document name is set with one function parameter. In this situation set internal and user name to string variable. For default function call (without parameter) set internal name to Unnamed, userName = translate ("Unnamed")
2022-10-20 21:35:09 -05:00
Yorik van Havre
8558d27776 Tools: Added support for pylupdate6 in translation handling scripts 2022-10-06 12:16:14 +02:00
Kuzemko Alexsandr
bd7d4273f3 Crowdin Add Material to updatets.py script and create new Material.ts 2022-06-21 17:45:25 +03:00
Kuzemko Alexsandr
648b97e283 Crowdin Add no-sort option to lupdate. 2022-06-21 17:29:22 +03:00
Kuzemko Alexsandr
a858de0046 Crowdin Add Inspection WB to updatets.py script 2022-06-21 17:28:40 +03:00
Kuzemko Alexsandr
3457b974d9 Crowdin Add full Part directory back to search path. 2022-06-04 15:09:19 -04:00
Chris Hennes
f966861a80 Tools: Manually search for translatable files 2022-06-02 14:58:44 -05:00
Chris Hennes
8f38236c49 Tools: Fix issues with updatets.py 2022-06-02 13:37:28 -05:00
Chris Hennes
54ffceea51 Tools: Add Windows and Qt6 support to updatets.py 2022-06-01 21:30:27 -05:00
Yorik van Havre
4244f0cb49 Tools: Favor the use of pylupdate5 over pyside2-lupdate in translation scripts (pyside2-lupdate doesn't encode properly). 2022-05-05 14:17:27 +02:00
Chris Hennes
e7e0dc292b Tools: Fix translation extraction bug 2022-04-21 10:55:45 -05:00
Yorik van Havre
53e9356521 Tools: Removed Assembly from updatets script 2022-03-23 10:24:43 +01:00
wmayer
859a9ce75c Tools: lgtm: removes unused imports in Python scripts 2022-03-20 21:41:30 +01:00
andrea reale
83d3a916c0 remove QT4 references 2022-03-19 23:07:38 +01:00
Yorik van Havre
85e833399b Tools: Allow to treat one single module with updatets script 2022-02-17 13:35:47 +01:00
Yorik van Havre
9c735c7d20 Tools: Using recursive option in lupdate script 2022-01-26 13:59:19 +01:00
Chris Hennes
be11d40603 Tools: Add workaround for lupdate missing source
lupdate requires at least one C++ source file to be present in order
to process the project file. In cases where a workbench is Python-only,
this resulted in incorrect or missing extraction of strings in ui files.
Those files should have been processed by lupdate, but were not.
pyludate was not configured to process them. To work around this, the
updatets.py script is modified to create a dummy *.cpp file before
running qmake.
2022-01-01 15:20:43 -06:00
Chris Hennes
0b8e3948a3 [Tools] Strip translations from base TS files 2021-09-30 15:13:26 -05:00
Chris Hennes
986a52c96f [Tools] Refactor updatets to support two-lang mods 2021-09-17 10:22:35 -05:00
Yorik van Havre
3d8e471599 Tools: Removed Plot from translation scripts 2021-08-26 14:50:36 +02:00
Yorik van Havre
cc17c23e75 Merge pull request #4900 from sanguinariojoe/del_ship
Ship: Remove Ship module
2021-08-16 17:30:43 +02:00
Chris Hennes
ae4711cd89 Add PartDesign Python commands for translation (#4961)
Fixes #4583
2021-08-11 14:51:18 -05:00
Jose Luis Cercos-Pita
ecdd01dd7d Remove Ship module 2021-07-05 09:24:21 +02:00
Chris Hennes
a27115410b [Start] Add missing files to translation script 2021-03-10 15:21:40 +01:00
Chris Hennes
e814172116 Fix regex in translation extraction script 2021-03-04 19:18:23 +01:00
Yorik van Havre
4232b2120d Tools: Detect and use pyside2-lupdate in ts tools 2021-02-12 14:45:41 +01:00
Yorik van Havre
4129a4d6b5 Tools: Made updatets delete temporary json files 2020-10-28 10:45:44 +01:00
Yorik van Havre
80725ccfdd Tools: Prefer using Qt5 translation tools over Qt4 2019-06-17 19:32:37 -03:00
Yorik van Havre
b69864f402 Tools: Added AddonManager to translation scripts 2019-06-17 17:26:19 -03:00
luz.paz
659d17129a FIx some user and non-user facing typos
Found via ` codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig* -L pard,wallthicknessOn`  
codespell version 1.15.0.dev0
2019-05-12 16:59:26 +02:00
luz.paz
d0beeb74da src/Tools/updatets.py: modernization tweeks
Made CLI output more user-friendly especially since we're transitioning to py3/qt5 and the translation tools have different standards (minor changes).  
+ added Changelog
+ bumped version and added authors
2019-05-06 10:21:58 -03:00
Yorik van Havre
7155e40080 Tools: Fixed bug in FreeCAD.ts generation 2019-03-02 19:32:10 -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
Yorik van Havre
5360dc5e0c Tools: Discard obsolete strings in translation files 2019-02-08 18:32:10 -02:00
Yorik van Havre
d33d352d94 Fixed translations of startpage 2018-12-30 12:38:03 -02:00