// Read the state of this language from XML.
public void ReadXml(XmlInput xmlinput)
{
xmlinput.CheckElement("language");
this.LangId = xmlinput.GetAttributeString("lang");
this.PluralNouns = xmlinput.GetAttributeBool("plural-nouns", false);
this.PluralModifiers = xmlinput.GetAttributeBool("plural-modifiers", false);
this.GenderModifiers = xmlinput.GetAttributeBool("gender-modifiers", false);
this.CaseModifiers = xmlinput.GetAttributeBool("case-modifiers", false);
string genders = xmlinput.GetAttributeString("genders", "");
if (genders != "")
{
this.Genders = genders.Split(new char[] { ',' });
}
string cases = xmlinput.GetAttributeString("cases", "");
if (cases != "")
{
this.Cases = cases.Split(new char[] { ',' });
}
this.Name = xmlinput.GetContentString();
}