Commit Graph

67 Commits

Author SHA1 Message Date
Chris Hennes
fe0d61001c Tools: Add exclusion list to lupdate calls 2023-05-05 18:41:51 -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
4a7e1b6d9b Tools: Apply pre-commit autoformatting 2023-04-22 13:07:06 -05:00
Yorik van Havre
f9d584016d [Tools] fixed encoding error in updatets script 2023-04-20 13:53:21 +02:00
Chris Hennes
6d112c565e Tools: Apply Black formatter to updatets.py 2023-04-16 20:54:32 -05:00
Chris Hennes
8d2f98a780 Tools/updatets.py: clean up file formatting issues. 2023-04-16 20:54:22 -05:00
ronnystandtke
89ebbfebcd Removed Image workbench from directories list (#9275) 2023-04-15 15:06:05 -05:00
mosfet80
3137dea940 remove Python2 code 2023-03-04 17:51:43 -06: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
0aee65e465 Tools: Fixed updatets script not picking py files 2022-12-22 13:34:31 +01:00
Yorik van Havre
7081615c29 Tools: Fixed minor bug in updatets 2022-12-22 10:34:34 +01:00
Kuzemko Alexsandr
63174d487f [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
87185f0911 Tools: Added support for pylupdate6 in translation handling scripts 2022-10-06 12:16:14 +02:00
Kuzemko Alexsandr
40395a0a57 Crowdin Add Material to updatets.py script and create new Material.ts 2022-06-21 17:45:25 +03:00
Kuzemko Alexsandr
a83fc8acd1 Crowdin Add no-sort option to lupdate. 2022-06-21 17:29:22 +03:00
Kuzemko Alexsandr
4b0c125d61 Crowdin Add Inspection WB to updatets.py script 2022-06-21 17:28:40 +03:00
Kuzemko Alexsandr
a42e1b0223 Crowdin Add full Part directory back to search path. 2022-06-04 15:09:19 -04:00
Chris Hennes
4dab407fbe Tools: Manually search for translatable files 2022-06-02 14:58:44 -05:00
Chris Hennes
acfbc72f50 Tools: Fix issues with updatets.py 2022-06-02 13:37:28 -05:00
Chris Hennes
213bf1ec61 Tools: Add Windows and Qt6 support to updatets.py 2022-06-01 21:30:27 -05:00
Yorik van Havre
c051711578 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
ea5e9538da Tools: Fix translation extraction bug 2022-04-21 10:55:45 -05:00
Yorik van Havre
822887d937 Tools: Removed Assembly from updatets script 2022-03-23 10:24:43 +01:00
wmayer
42d48103e8 Tools: lgtm: removes unused imports in Python scripts 2022-03-20 21:41:30 +01:00
andrea reale
13e09b36f8 remove QT4 references 2022-03-19 23:07:38 +01:00
Yorik van Havre
e24da8dd94 Tools: Allow to treat one single module with updatets script 2022-02-17 13:35:47 +01:00
Yorik van Havre
c1ba2962dc Tools: Using recursive option in lupdate script 2022-01-26 13:59:19 +01:00
Chris Hennes
3e75db0d58 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
ef7127a456 [Tools] Strip translations from base TS files 2021-09-30 15:13:26 -05:00
Chris Hennes
def6d0563a [Tools] Refactor updatets to support two-lang mods 2021-09-17 10:22:35 -05:00
Yorik van Havre
e359c01cc9 Tools: Removed Plot from translation scripts 2021-08-26 14:50:36 +02:00
Yorik van Havre
61ac0b4838 Merge pull request #4900 from sanguinariojoe/del_ship
Ship: Remove Ship module
2021-08-16 17:30:43 +02:00
Chris Hennes
6d136c9b1b Add PartDesign Python commands for translation (#4961)
Fixes #4583
2021-08-11 14:51:18 -05:00
Jose Luis Cercos-Pita
63c9e7ee72 Remove Ship module 2021-07-05 09:24:21 +02:00
Chris Hennes
ee6222d216 [Start] Add missing files to translation script 2021-03-10 15:21:40 +01:00
Chris Hennes
6789ddaac9 Fix regex in translation extraction script 2021-03-04 19:18:23 +01:00
Yorik van Havre
97bfc5541e Tools: Detect and use pyside2-lupdate in ts tools 2021-02-12 14:45:41 +01:00
Yorik van Havre
c3672f6e1d Tools: Made updatets delete temporary json files 2020-10-28 10:45:44 +01:00
Yorik van Havre
2713078b25 Tools: Prefer using Qt5 translation tools over Qt4 2019-06-17 19:32:37 -03:00
Yorik van Havre
1186bf45e1 Tools: Added AddonManager to translation scripts 2019-06-17 17:26:19 -03:00
luz.paz
8d5fbd947b 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
fa1a429367 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
ad28ba5095 Tools: Fixed bug in FreeCAD.ts generation 2019-03-02 19:32:10 -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
Yorik van Havre
b2619e7eb7 Tools: Discard obsolete strings in translation files 2019-02-08 18:32:10 -02:00
Yorik van Havre
0bf6ca9732 Fixed translations of startpage 2018-12-30 12:38:03 -02:00
Yorik van Havre
fc5542b976 Fixed translation of py commands in Image 2018-12-27 11:14:07 -02:00
Yorik van Havre
cea09fd986 fixed non-executable translation script 2018-12-27 10:55:58 -02:00
Yorik van Havre
c5939d4476 Tools: cosmetic fix in translation scripts 2018-12-18 11:36:46 -02:00
Yorik van Havre
f56198dd33 Tools: fixed translation of py files in Part 2018-12-10 11:00:53 -02:00