Generating QM files from TS with cMake

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Generating QM files from TS with cMake

Post by wmayer »

chennes wrote: Sun Apr 30, 2023 2:49 am @wmayer are you planning on continuing this work? I don't want to duplicate efforts here -- I like your final approach and think we should apply it everywhere.
Sure, I can continue with this. Do you plan to have this done before the feature freeze?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Generating QM files from TS with cMake

Post by wmayer »

https://github.com/wwmayer/FreeCAD/comm ... e_qm_files

This does the .qm file generation for all C++ based extension modules and the core system. Python based modules are not yet moved.
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Generating QM files from TS with cMake

Post by chennes »

Yes, I’d like to do it before the freeze: I’m doing some work on more automation of the translation process and this is a part of it.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Generating QM files from TS with cMake

Post by chennes »

@wmayer would it be OK with you if I create a PR based on your work on this so far? I'd like to increase the cadence and automation of our translation work, and these QM files are bloating the git repo.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Generating QM files from TS with cMake

Post by wmayer »

I have created a PR of this branch. Unfortunately, it causes a merge conflict with some of the .qm files. I will fix them as soon as possible...
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Generating QM files from TS with cMake

Post by chennes »

Yes, sorry— I merged the translations this morning, so you will have to “redelete” the QM files. I should have been patient!
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Generating QM files from TS with cMake

Post by wmayer »

Fixed.
Post Reply