- Posts: 47
- Thank you received: 0
Translation files for QtPlasmaC
2 years 8 months ago #293656
by Franklin
Translation files for QtPlasmaC was created by Franklin
Hi everyone who tried to create a translation file? I did everything according to the instructions and it doesn't work. I have this error "bash: langfile: command not found"
What am I doing wrong?
What am I doing wrong?
Please Log in to join the conversation.
2 years 8 months ago #293677
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
Is there a script named langfile in your current directory and is it executable?
Are you running a package installation or a run in place installation?
Are you running a package installation or a run in place installation?
Please Log in to join the conversation.
2 years 8 months ago #293680
by Franklin
Replied by Franklin on topic Translation files for QtPlasmaC
Yes the langfile is present in the directory but I can't execute it. I use run in place installation and run command "langfile ua" from directory cd ~/linuxcnc-dev/share/qtvcp/screens/qtplasmac/languages
Please Log in to join the conversation.
2 years 8 months ago #293737
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
Try adding ./ in front of langfile, like:
Code:
./langfile xx
Please Log in to join the conversation.
2 years 8 months ago #293749
by Franklin
Replied by Franklin on topic Translation files for QtPlasmaC
It worked, thanks.
Is it possible to do this in the package installation (Buildbot)?
Is it possible to do this in the package installation (Buildbot)?
Please Log in to join the conversation.
2 years 8 months ago #293750
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
To be honest I have not tried. The directory would be in a system directory so you would need elevated privileges like sudo.
Please Log in to join the conversation.
2 years 8 months ago #293795
by Franklin
Replied by Franklin on topic Translation files for QtPlasmaC
I tried to translate the interface but qtplasmac doesn't see my langfile. This is probably a problem with my system locale?
Code:
# locale
LANG=uk_UA.UTF-8
Please Log in to join the conversation.
2 years 8 months ago #293805
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
Can you post the language file, I will make a new virtual machine for testing. You may need to add .txt to end so the forum accepts it.
Please Log in to join the conversation.
2 years 8 months ago #293808
by Franklin
Replied by Franklin on topic Translation files for QtPlasmaC
I tried renaming it to qtplasmac_uk and nothing changed.
language file:
language file:
Attachment not found
Please Log in to join the conversation.
2 years 8 months ago #293812
by phillc54
Replied by phillc54 on topic Translation files for QtPlasmaC
The file end needs to be the first two letters from locale, so in your case it would be qtplasmac_uk.ts
Edit: did you create the .qm file
Warning: Spoiler!
Attachment not found
Edit: did you create the .qm file
Please Log in to join the conversation.
Time to create page: 0.097 seconds
