How to localize the default error message for parser?

SyntaxEditor for Windows Forms Forum

Posted 14 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 14 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 (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.