Change language

More
5 years 5 months ago #209166 by anli
Replied by anli on topic Change language
Thank you! Do you think it makes sense if I create a PR where you can change language settings?

André

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

More
5 years 3 months ago - 5 years 3 months ago #216407 by HalaszAttila
Replied by HalaszAttila on topic Change language
Hello,

can you please tell me, how can I activate for example a hu.po translate file?
I compiled Linuxcnc from source, and find the translate files. But i dont know how to activate them.
If i change the linux language, Gmoccapy will follow the system lang, but in this case for some reason the preview path will offsetted. See in this topic:

forum.linuxcnc.org/gmoccapy/32592-tool-p...er-changing-language

Maybe if i just use Gamoccapy with translate file, and the linux system remain on english, maybe the path offset will solved. :)

locale.setlocale(locale.LC_ALL, '') 
Maybe this need to edit in gmoccapy.py file? 


Thanks for help. :)
Last edit: 5 years 3 months ago by HalaszAttila.

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

More
5 years 3 months ago #216625 by newbynobi
Replied by newbynobi on topic Change language
gmoccapy will check the locale settings of the system and set the language automatically.

For testing I just rename the de.po file to be de.old and then the hu.po to be de.po
This is just a work around, but it helps me to see if translation files fit the screen sizes.

Norbert

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

More
5 years 2 months ago #216787 by HalaszAttila
Replied by HalaszAttila on topic Change language
Thanks,

i tested it, but it works just if i set linux to Geman language. (de.po -> hu.po)
But if linux is on english language dont works. Becouse no en.po file which to rename to. Maybe the default language is english. Where can i find the english language file? I plan to rewrite it by hand :D

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

More
5 years 2 months ago #216888 by newbynobi
Replied by newbynobi on topic Change language
try to change gmoccapy.po file.
English is default, so it may be necessary also to change the strings in the code. I have never tried to set a different language while computer is in english. I am using German settings in OS.

Norbert

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

Moderators: newbynobi, HansU
Time to create page: 0.065 seconds
Powered by Kunena Forum