Change language

More
5 years 5 months ago #208951 by anli
Change language was created by anli
Hi *,

I'm using gmoccapy 3.1.3.6 on a german linux. I want to change the language of gmoccapy to english. How can I do this? I didn't find a solution. Thanks for your help in advance!

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

More
5 years 5 months ago #208973 by newbynobi
Replied by newbynobi on topic Change language

anli wrote: Hi *,

I'm using gmoccapy 3.1.3.6 on a german linux. I want to change the language of gmoccapy to english. How can I do this? I didn't find a solution. Thanks for your help in advance!


The easiest is to change your lokale settings of the OS, as gmoccapy will react on your locale settings, or you look for the translation file gmoccapy / de_po and rename or delete that one. Default language is English, so not finding the translation files will present it in english

Norbert

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

More
5 years 5 months ago #209059 by anli
Replied by anli on topic Change language
Hi Norbert,

thank you for your suggestion. Do I have to delete de.po before I compile LinuxCNC? I can't find where it is located. I searched for de_po and de.po and can only find the files in the sources.

Kind regards, André

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

More
5 years 5 months ago #209072 by newbynobi
Replied by newbynobi on topic Change language
Hallo André,

if you work from source, you will find the file:

linuxcnc-dev/src/po/gmoccapy/de.po

Just rename that one prior to compiling.

If you use an installed version of LinuxCNC I am not bale to tell you where the file is located, I expect it to be in usr/share/...
but I have at the moment only access to my development systems.

Norbert

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

More
5 years 5 months ago - 5 years 5 months ago #209103 by anli
Replied by anli on topic Change language
Hallo Norbert,

thanks a lot! Hm, I can't find the files anywhere in the system - only in the dev directories. Moving the de.po file outside of the directory prior to compiling helped - but it would be good to be able to switch languages after installation. So I would be glad if you can tell me where I can find the de.po file after installation.
Maybe it would be good to have the possibility to change the language via a config option too? I could have a look to create one but I can't find the entry point in code. The only thing I found is
Code:
// Mark strings for translation, but defer translation to userspace #define _(s) (s)
in the whatever.c file. If anyone could point me to the right direction here this would be great. I think it could be helpful to switch to english sometimes when the messages are in local languages to get better help e. g. in the forum. I created a (already merged) PR for german language this morning so I could create one for the config option as well once found :-)

Andre (litti)
Last edit: 5 years 5 months ago by anli.

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

More
5 years 5 months ago #209158 by newbynobi
Replied by newbynobi on topic Change language
Gmocapy translation files are loaded within the gmoccapy. Py file. Look in the sources it's all at the beginning

Norbert

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

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