Translation files for QtPlasmaC

More
2 years 8 months ago #293828 by Franklin
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.

Please Log in to join the conversation.

More
2 years 8 months ago #293829 by phillc54
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 to join the conversation.

More
1 year 11 months ago #315130 by gekonko
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?
Code:
If any text changes are made to the GUI then run the following to create a GUI python file: $ pyuic5 ../qtplasmac.ui > qtplasmac.py


 

Attachment not found



Code:
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.

Please Log in to join the conversation.

More
1 year 11 months ago #315143 by phillc54

I have only edited the file in LINGUIST, do I need to do this step from howto?
Code:
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 to join the conversation.

More
1 year 11 months ago #315167 by gekonko
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



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?
Code:
<?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]

Please Log in to join the conversation.

More
1 year 11 months ago #315212 by phillc54
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?

Please Log in to join the conversation.

More
1 year 11 months ago #315213 by phillc54
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!

Please Log in to join the conversation.

More
1 year 11 months ago #315241 by gekonko
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 to join the conversation.

More
1 year 11 months ago #315268 by phillc54
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.
 

Please Log in to join the conversation.

More
1 year 11 months ago #315312 by gekonko

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.

Please Log in to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum