Localization

Sep 21, 2010 at 5:48 PM

[Sorry for my bad English]

I would like to have Russian language support. Is it correct to make simple changes for achieving it? Red - cyrillic symbols have been added for Atoms, Variables, and so on. In the similar way.

[Terminal(@"[A-ZА-Я][a-zа-яA-ZА-Я0-9_]{0,99}")]
For the first sight, works good.
Warm regards,
Slava.

PS: Tnx for the Prolog. I need it.

Coordinator
Dec 11, 2011 at 8:16 PM

I have just checked in a change to the grammar that uses Unicode character classes for variables and atoms:

    [Terminal(@"[\p{Lu}][\p{L}\p{N}_]{0,99}")]
    internal sealed class Variable : PrologTerminal

    [Terminal(@"[\p{Ll}][\p{L}\p{N}_]{0,99}|\.(?=\()")]
    internal sealed class Atom : PrologTerminal

Let me know if that still doesn't produce the desired results.  

PS: You're welcome - sorry for such a late reply!