erminas.SmartAPI.CMS.Locale.Locale C# (CSharp) Method

Locale() protected method

protected Locale ( ISession session, XmlElement xmlElement ) : System
session ISession
xmlElement System.Xml.XmlElement
return System
        protected Locale(ISession session, XmlElement xmlElement)
        {
            _session = session;
            LanguageAbbreviation = xmlElement.GetAttributeValue("id");
            Country = xmlElement.GetAttributeValue("country");
            Language = xmlElement.GetAttributeValue("language");
            IsStandardLanguage = xmlElement.GetBoolAttributeValue("standardlanguage").GetValueOrDefault();
            LCID = xmlElement.GetIntAttributeValue("lcid").GetValueOrDefault();
            RFCLanguageId = xmlElement.GetAttributeValue("rfclanguageid");
            DateTimeFormats = new IndexedCachedList<int, IDateTimeFormat>(GetFormats, x => x.TypeId, Caching.Enabled);
        }