Translation files for QtPlasmaC

More
17 Feb 2024 21:33 #293656 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?

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

More
18 Feb 2024 09:55 - 18 Feb 2024 09:56 #293677 by phillc54
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?
Last edit: 18 Feb 2024 09:56 by phillc54.

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

More
18 Feb 2024 12:25 #293680 by Franklin
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 or Create an account to join the conversation.

More
19 Feb 2024 02:34 #293737 by phillc54
Try adding ./ in front of langfile, like:
./langfile xx
 

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

More
19 Feb 2024 08:33 #293749 by Franklin
It worked, thanks.
Is it possible to do this in the package installation (Buildbot)?

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

More
19 Feb 2024 08:38 #293750 by phillc54
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 or Create an account to join the conversation.

More
19 Feb 2024 22:07 - 19 Feb 2024 22:08 #293795 by Franklin
I tried to translate the interface but qtplasmac doesn't see my langfile.  This is probably a problem with my system locale?
# locale
LANG=uk_UA.UTF-8
    
Last edit: 19 Feb 2024 22:08 by Franklin.

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

More
19 Feb 2024 23:06 #293805 by phillc54
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 or Create an account to join the conversation.

More
19 Feb 2024 23:30 - 19 Feb 2024 23:34 #293808 by Franklin
I tried renaming it to qtplasmac_uk and nothing changed.
language file: 

File Attachment:

File Name: qtplasmac_ua.txt
File Size:156 KB
Attachments:
Last edit: 19 Feb 2024 23:34 by Franklin.

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

More
20 Feb 2024 01:14 - 20 Feb 2024 01:18 #293812 by phillc54
The file end needs to be the first two letters from locale, so in your case it would be qtplasmac_uk.ts
Warning: Spoiler!


Edit: did you create the .qm file
 
Attachments:
Last edit: 20 Feb 2024 01:18 by phillc54.

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

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