18 namespace erminas.SmartAPI.CMS.Project
22 string Abbreviation {
get; }
23 bool IsCurrentLanguageVariant {
get; }
24 bool IsMainLanguage {
get; }
28 internal class LanguageVariant : RedDotProjectObject, ILanguageVariant
30 private string _abbreviation;
31 private bool _isCurrentLanguageVariant;
32 private bool _isMainLanguage;
34 internal LanguageVariant(IProject project, XmlElement xmlElement) : base(project, xmlElement)
39 public string Abbreviation
41 get {
return _abbreviation; }
44 public bool IsCurrentLanguageVariant
46 get {
return _isCurrentLanguageVariant; }
47 internal set { _isCurrentLanguageVariant = value; }
50 public bool IsMainLanguage
52 get {
return _isMainLanguage; }
57 Project.LanguageVariants.Current =
this;
60 private void LoadXml()
62 InitIfPresent(ref _isCurrentLanguageVariant,
"checked", BoolConvert);
63 InitIfPresent(ref _abbreviation,
"language", x => x);
64 InitIfPresent(ref _isMainLanguage,
"ismainlanguage", BoolConvert);