How to localize the default error message for parser?

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Peter Luo - AIMNEXT
Version: 4.0.0285

I defined a language with the GrammarDesinger, and when I typed some invalid text in the SyntaxEditor, the errors will be highlighted with a red squiggle under text, and the error message on the tooltip is "xxx expected.", that's very good, but how can I customise it to others language ? May be Chinese and Janpanese.


Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Peter,

All the UI strings can be customized via code like this:
   "SemanticParserError_Expected", "localized text here");
These two error string resources are used with the semantic parser:
SemanticParserError_Expected = expected.
SemanticParserError_UnexpectedToken = Unexpected token.

Actipro Software Support

The latest build of this product (v23.1.2) was released 20 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.