Translation files for QtPlasmaC

More
20 Feb 2024 08:16 #293828 by Franklin
Replied by Franklin on topic Translation files for QtPlasmaC
Yes indeed the .qm file was missing, now it works. Thanks Phill for the help.
Later I will try to do this in the package installation.
The following user(s) said Thank You: phillc54

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

More
20 Feb 2024 08:23 #293829 by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
Great, glad it is working. 
When you finish the translations you may want to consider creating a pull request so we can add them to master branch. 

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

More
23 Nov 2024 19:22 #315130 by gekonko
Replied by gekonko on topic Translation files for QtPlasmaC
Hello,
I would like to create translation files for Slovak, but I have been unsuccessfull so far.
This is my progress so far:
- I have Installed linuxcnc from image
- deinstalled the linuxcnc and installed as run in place
- I have configuration running with mesa 7i96s
- i was able to generate QM and TS files, and create links to compiled .qm files
- i have tryied to copy qm files directly to  /qtplasmac_4x3/languages/ /qtplasmac_9x16/languages/
- my version is QtPlasmaC v2.10-008.054

I have only edited the file in LINGUIST, do I need to do this step from howto?
If any text changes are made to the GUI then run the following to create a GUI python file:
$ pyuic5 ../qtplasmac.ui > qtplasmac.py


 

File Attachment:

File Name: qtplasmac_sk.txt
File Size:163 KB


LANG=sk_SK.UTF-8
LANGUAGE=
LC_CTYPE="sk_SK.UTF-8"
LC_NUMERIC="sk_SK.UTF-8"
LC_TIME="sk_SK.UTF-8"
LC_COLLATE="sk_SK.UTF-8"
LC_MONETARY="sk_SK.UTF-8"
LC_MESSAGES="sk_SK.UTF-8"
LC_PAPER="sk_SK.UTF-8"
LC_NAME="sk_SK.UTF-8"
LC_ADDRESS="sk_SK.UTF-8"
LC_TELEPHONE="sk_SK.UTF-8"
LC_MEASUREMENT="sk_SK.UTF-8"
LC_IDENTIFICATION="sk_SK.UTF-8"
LC_ALL=

Is there any obvious problem with my workflow?
thank you for help.
Attachments:

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

More
23 Nov 2024 22:43 #315143 by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC

I have only edited the file in LINGUIST, do I need to do this step from howto?
If any text changes are made to the GUI then run the following to create a GUI python file:
$ pyuic5 ../qtplasmac.ui > qtplasmac.py

No, you only need to do that if there are any changes to the original English version so the changes can be added to the translation.

What is the file that you attached, there doesn't seem to be any translations in it.
Can you post the .qm and .ts files as a zip file.

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

More
24 Nov 2024 12:30 - 24 Nov 2024 12:31 #315167 by gekonko
Replied by gekonko on topic Translation files for QtPlasmaC
I have translated mainly the MainWindow when I decided to test it, before putting more hours in it.
I have also tested to translate only one button "estop", the compiled .qm file had the translation inside.
 

Attachment not found



I have also spotted difference between mine and @Franklin's .ts file. At the very beginning, the line="42" and line="43" is different. Does this means that these translations arent compatible between versions?
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="uk_UA" sourcelanguage="en">
<context>
<name>Conversational</name>
<message>
<location filename="../../../../../lib/python/qtvcp/lib/qtplasmac/conv_block.py" line="42"/>
<source>Block Error</source>
<translation type="unfinished"></translation>
</message>



[code]<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sk_SK" sourcelanguage="en">
<context>
<name>Conversational</name>
<message>
<location filename="../../../../../lib/python/qtvcp/lib/qtplasmac/conv_block.py" line="43"/>
<source>Block Error</source>
<translation type="unfinished"></translation>
</message>
[/code]
Attachments:
Last edit: 24 Nov 2024 12:31 by gekonko. Reason: no idea where the attachments went

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

More
25 Nov 2024 02:49 #315212 by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
I copied your two files to share/qtvcp/screens/qtplasmac/languages and ran QtPlasmaC on master branch with the standard screen size and it works here:
Warning: Spoiler!


What version of LinuxCNC are you using and what QtPlasmaC screen?
Attachments:

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

More
25 Nov 2024 03:02 - 25 Nov 2024 03:02 #315213 by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
I should also mention that some of the MainWindow translation will get overwritten by the HandlerClass so the translations will need to be done in both. CYCLE START is an example.

Warning: Spoiler!
Attachments:
Last edit: 25 Nov 2024 03:02 by phillc54.

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

More
25 Nov 2024 17:30 #315241 by gekonko
Replied by gekonko on topic Translation files for QtPlasmaC
Hello phillc54,
thank you for info.
 As I mentioned earlier - my version is QtPlasmaC v2.10-008.054
my linuxcnc version:
Warning: Spoiler!

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

More
26 Nov 2024 02:43 #315268 by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
It looks like bad instructions on our part...

Try renaming qtplasmac_sk.qm in linuxcnc-dev/share/qtvcp/screens/qtplasmac_4x3/languages/ to qtplasmac_4x3_sk.qm

If that works for you then we will edit the documentation.
 
The following user(s) said Thank You: gekonko

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

More
26 Nov 2024 16:46 #315312 by gekonko
Replied by gekonko on topic Translation files for QtPlasmaC

It looks like bad instructions on our part...

Try renaming qtplasmac_sk.qm in linuxcnc-dev/share/qtvcp/screens/qtplasmac_4x3/languages/ to qtplasmac_4x3_sk.qm

If that works for you then we will edit the documentation.
 

It is working now! Thank you for your support.
The following user(s) said Thank You: phillc54

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

Moderators: snowgoer540
Time to create page: 0.217 seconds
Powered by Kunena Forum