Translation files for QtPlasmaC
- Franklin
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 19
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.
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.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
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.
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.
- gekonko
-
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 3
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?
Is there any obvious problem with my workflow?
thank you for help.
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
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.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
23 Nov 2024 22:43 #315143
by phillc54
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.
Replied by phillc54 on topic Translation files for QtPlasmaC
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.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
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.
- gekonko
-
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 3
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.
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]
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>
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.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
25 Nov 2024 02:49 #315212
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
Attachments:
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
25 Nov 2024 03:02 - 25 Nov 2024 03:02 #315213
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
Attachments:
Last edit: 25 Nov 2024 03:02 by phillc54.
Please Log in or Create an account to join the conversation.
- gekonko
-
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 3
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:
thank you for info.
As I mentioned earlier - my version is QtPlasmaC v2.10-008.054
my linuxcnc version:
Warning: Spoiler!
Print file information:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/marek/linuxcnc-dev/bin
LINUXCNC_TCL_DIR=/home/marek/linuxcnc-dev/tcl
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/home/marek/linuxcnc-dev/rtlib
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/home/marek/linuxcnc-dev/src/objects
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/home/marek/linuxcnc/configs/novy_stroj'
Machine configuration file is 'novy_stroj.ini'
INIFILE=/home/marek/linuxcnc/configs/novy_stroj/novy_stroj.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtplasmac_4x3
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/marek/linuxcnc-dev/bin
LINUXCNC_TCL_DIR=/home/marek/linuxcnc-dev/tcl
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/home/marek/linuxcnc-dev/rtlib
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/home/marek/linuxcnc-dev/src/objects
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/home/marek/linuxcnc/configs/novy_stroj'
Machine configuration file is 'novy_stroj.ini'
INIFILE=/home/marek/linuxcnc/configs/novy_stroj/novy_stroj.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtplasmac_4x3
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5723
- Thank you received: 2095
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.
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.
- gekonko
-
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 3
26 Nov 2024 16:46 #315312
by gekonko
Replied by gekonko on topic Translation files for QtPlasmaC
It is working now! Thank you for your support.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: phillc54
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.217 seconds