Help,How to customize language of QtDragon's interface

More
03 Jun 2024 01:33 #302210 by timaer
Hi,I'm not familiar with how QtPlamac works.I only think among all the builtin linuxcnc control panels,the QtDragon looks to be the most professional one.Since I'm newbee to the linuxcnc ,now I can only create and use the QtDragon panel through the linuxcnc wizard. Do you mean that you have the seperated version of QtDragon/hd which has the translation ability? If I use the version you provided then I dont need to translate the English string to Chinese anymore ? Hope to recv your reply ,thank you.

Please Log in or Create an account to join the conversation.

More
03 Jun 2024 21:16 #302273 by cmorley
I have added the ability to add translations to qtdragon/hd in the master development branch.
There are no translations as of yet.
This work just makes adding translations much easier then modifying the code directly.
Qtplasmac has had this for awhile and I just copied it.
The following user(s) said Thank You: tommylight, timaer

Please Log in or Create an account to join the conversation.

More
04 Jun 2024 01:35 #302286 by timaer
Thanks ,separating the text translating and the source code will be a improvement for the codes level ,nice job!

Please Log in or Create an account to join the conversation.

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
26 Feb 2025 16:30 #322717 by vre
Where can find a skeleton of qss file with all button strings ?

Please Log in or Create an account to join the conversation.

More
26 Feb 2025 19:04 #322728 by cmorley
If you want to change lots of button text, it's probably better to use translation process. See here:
linuxcnc.org/docs/devel/html/gui/qtdrago...internationalisation

You can do this to change the text even to different English names.

If it's just a few then stylessheets is less involved but you would need to use designer to see the button text or search the .ui file.

Please Log in or Create an account to join the conversation.

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
28 Feb 2025 04:42 #322839 by vre
But this supported in 2.9.4 or needs master?

Please Log in or Create an account to join the conversation.

More
28 Feb 2025 06:04 #322843 by cmorley
in 2.9 you would have to add the language folder and the script to automate the making of the .ts file.
And strings defined in the handler file will not be translatable but most of the buttons are done in designer and that should work. (though I have not tried it)

It's possible just more work. (You could also modify the 2.9 handler to add translatable strings, it's pretty straight forward.)

If your interested I can give more detail.

Please Log in or Create an account to join the conversation.

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
28 Feb 2025 06:44 #322846 by vre
ok then master..
When 2.10 will be released do you know something ?

Please Log in or Create an account to join the conversation.

More
28 Feb 2025 22:13 #322894 by cmorley
I know of no talk about releasing 2.10 anytime soon.

Please Log in or Create an account to join the conversation.

  • vre
  • Away
  • Platinum Member
  • Platinum Member
More
05 Mar 2025 23:41 #323319 by vre
I have installed master and done qm file with linguist how to install it to qtdragon_hd?

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.074 seconds
Powered by Kunena Forum