Embedded and language issue
25 Nov 2018 18:43 #121330
by mydani
Embedded and language issue was created by mydani
Hi,
two things are a little annoying when using NativeCAM embedded into gmoccapy.
On every startup an error message pops up "Can't switch to auto mode" or sth. Of course not, because the machine is not enabled or homed. Is it possible for NativeCAM to be configured in a way, that it only load the generated code when linuxcnc is homed?
Secondly I have some weird translation issue - some parts of NativeCAM are translated to german, but really not in the good way. Is there some configuration to keep native cam in english?
Thanks for any tips!
Regards,
Daniel
two things are a little annoying when using NativeCAM embedded into gmoccapy.
On every startup an error message pops up "Can't switch to auto mode" or sth. Of course not, because the machine is not enabled or homed. Is it possible for NativeCAM to be configured in a way, that it only load the generated code when linuxcnc is homed?
Secondly I have some weird translation issue - some parts of NativeCAM are translated to german, but really not in the good way. Is there some configuration to keep native cam in english?
Thanks for any tips!
Regards,
Daniel
Please Log in or Create an account to join the conversation.
25 Nov 2018 22:38 #121353
by FernV
Hi,
As superuser, delete /usr/share/locale/de/LC_MESSAGES/nativecam.mo
I will see what can be done for gmoccapy
Regards
Fern
Replied by FernV on topic Embedded and language issue
... some parts of NativeCAM are translated to german, but really not in the good way. Is there some configuration to keep native cam in english?
Hi,
As superuser, delete /usr/share/locale/de/LC_MESSAGES/nativecam.mo
I will see what can be done for gmoccapy
Regards
Fern
Please Log in or Create an account to join the conversation.
25 Nov 2018 22:51 #121354
by FernV
I just found that linuxcnc.stat has a parameter specially to test what axis are homed. It should be possible to add what you ask in the next version
Fern
Replied by FernV on topic Embedded and language issue
...annoying when using NativeCAM embedded into gmoccapy.
On every startup an error message pops up "Can't switch to auto mode" or sth. Of course not, because the machine is not enabled or homed. Is it possible for NativeCAM to be configured in a way, that it only load the generated code when linuxcnc is homed?
I just found that linuxcnc.stat has a parameter specially to test what axis are homed. It should be possible to add what you ask in the next version
Fern
Please Log in or Create an account to join the conversation.
18 Sep 2019 11:52 #145501
by kjacobs
Replied by kjacobs on topic Embedded and language issue
I know it is a long time ago, but if anyone is still interested: a (somewhat crude) solution is to add the following at line 4222 of ncam.py:
I verified it in a machinekit environment.
s = linuxcnc.stat()
s.poll()
if not s.axis[0]['homed'] or not s.axis[2]['homed']:
return False
if not self.pref.cat_name == 'lathe': #do not ask for axis 1 if lathe
if not s.axis[1]['homed']:
return False
Please Log in or Create an account to join the conversation.
02 Jul 2020 11:05 #173399
by mydani
Replied by mydani on topic Embedded and language issue
Hi all,
I am trying to work on the translation besides some software changes, but I struggle with Poedit and updating from sources.
If I just update the catalogue in poedit, it will drop to 216 words compared to ~1000 which it should find. It seems the .cfg-files are not parsed at all.
Does anyone know how to update the .po-file so it includes the required ncam files?
Regards,
Daniel
I am trying to work on the translation besides some software changes, but I struggle with Poedit and updating from sources.
If I just update the catalogue in poedit, it will drop to 216 words compared to ~1000 which it should find. It seems the .cfg-files are not parsed at all.
Does anyone know how to update the .po-file so it includes the required ncam files?
Regards,
Daniel
Please Log in or Create an account to join the conversation.
03 Jul 2020 12:31 #173510
by mydani
Replied by mydani on topic Embedded and language issue
All done, worked out a way for poedit 2 with custom extractor. Now I can work on the german translation.
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds