Translation files for QtPlasmaC

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

More
2 years 8 months ago #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?

Please Log in to join the conversation.

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

More
2 years 8 months ago #293737 by phillc54
Try adding ./ in front of langfile, like:
Code:
./langfile xx
 

Please Log in to join the conversation.

More
2 years 8 months ago #293749 by Franklin
It worked, thanks.
Is it possible to do this in the package installation (Buildbot)?

Please Log in to join the conversation.

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

More
2 years 8 months ago #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?
Code:
# locale LANG=uk_UA.UTF-8
    

Please Log in to join the conversation.

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

More
2 years 8 months ago #293808 by Franklin
I tried renaming it to qtplasmac_uk and nothing changed.
language file: 

Attachment not found

Please Log in to join the conversation.

More
2 years 8 months ago #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
 

Please Log in to join the conversation.

Time to create page: 0.097 seconds
Powered by Kunena Forum