Adding a user_language.msg file

Moderator: cnckeith

Post Reply
cncsnw
Community Expert
Posts: 4540
Joined: Wed Mar 24, 2010 5:48 pm

Adding a user_language.msg file

Post by cncsnw »

Referring to the v5.20 release notes, I created a user_language.msg file.

The complete file is in the attached "report.zip". A sample entry begins as follows:

Code: Select all

[cncxmprm.cpp ]
 replacement: "Reserved for Enduser/Integrator custom PLC and Macro use"
 eng: @P710_LABEL = "VFD boot-up time (ms)"
 spa: ""
The objective is to replace the parameter descriptions for P710, P711 and P712 to describe the specific uses of those parameters in this project.

Unfortunately, in CNC12 Oak Mill v5.20, and also in the CNC12 Mill Offline/Demo v5.20, the new text appears with the wrong parameters.

The new text for P710 appears for P700; the new text for P711 does not appear anywhere at all; and the new text for P712 appears for P701.

How should I format the user_language.msg file so that the correct parameter descriptions are replaced?

Also, what is the role of the "replacement:" line?

If CNC12 uses that text -- instead of the unique "@" tag -- to determine what to replace, then there will be several problems: it will probably replace just the first piece of text that happens to match that content, regardless of whether it is the intended one; and the user_language.msg file will probably cease working if Centroid changes their text in the supplied language.msg file in some future software update.
Attachments
report.zip
(450 Bytes) Downloaded 4 times


ASPeters
Posts: 43
Joined: Thu Feb 10, 2022 5:55 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Adding a user_language.msg file

Post by ASPeters »

I outline how to use the user_language file a little bit more here with an example of how to use either the text or a tag: https://centroidcncforum.com/viewtopic. ... 664#p90664

The role of the replacement line is to inform CNC12 exactly what text entry you are trying to replace.


cncsnw
Community Expert
Posts: 4540
Joined: Wed Mar 24, 2010 5:48 pm

Re: Adding a user_language.msg file

Post by cncsnw »

Thanks. I had overlooked that post, and was relying just on the v5.20 release notes.


cnckeith
Site Admin
Posts: 8883
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Adding a user_language.msg file

Post by cnckeith »

cncsnw wrote: Mon Nov 18, 2024 10:41 pm Thanks. I had overlooked that post, and was relying just on the v5.20 release notes.
what did i miss in the release notes? Jacob is adding any/all info related to this feature in the operator manual so now is the time to get the good info in there!
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


cncsnw
Community Expert
Posts: 4540
Joined: Wed Mar 24, 2010 5:48 pm

Re: Adding a user_language.msg file

Post by cncsnw »

The example in the release notes uses the quoted English language text as the "replacement" field, instead of the @ tag.

That will only work if the English language text is unique. It does not work if the English language text is, for example, "Reserved for Enduser/Integrator custom PLC and Macro use".

Presumably a user_language.msg file that uses the English language text as the "replacement" field will work with future releases of CNC12 only if the factory-supplied text does not change.


Post Reply