public List<LocalizedLanguage> GetLanguages(LegionDatabase Database)
        {
            this.Process();

            List<LocalizedLanguage> Languages = new List<LocalizedLanguage>();

            // Generate language parents
            for (int i = 0; i < LANGUAGES.Length; ++i)
            {
                LocalizedLanguage Lang = new LocalizedLanguage();
                Lang.LanguageId = LANGUAGES[i];
                Lang.Keys = new List<string>();
                Lang.Values = new List<string>();
                Languages.Add(Lang);
            }

            // Generate localized languages
            for (int i = 0; i < LANGUAGES.Length; ++i)
            {
                LocalizedLanguage Lang = new LocalizedLanguage();
                Lang.LanguageId = LANGUAGES[i];
                Lang.ParentDataTable = this;
                Lang.Keys = Keys ?? new List<string>();
                Lang.Values = English ?? new List<string>();
                Languages.Add(Lang);
            }

            return Languages;
        }
Ejemplo n.º 2
0
        public List <LocalizedLanguage> GetLanguages(LegionDatabase Database)
        {
            this.Process();

            List <LocalizedLanguage> Languages = new List <LocalizedLanguage>();

            // Generate language parents
            for (int i = 0; i < LANGUAGES.Length; ++i)
            {
                LocalizedLanguage Lang = new LocalizedLanguage();
                Lang.LanguageId = LANGUAGES[i];
                Lang.Keys       = new List <string>();
                Lang.Values     = new List <string>();
                Languages.Add(Lang);
            }

            // Generate localized languages
            for (int i = 0; i < LANGUAGES.Length; ++i)
            {
                LocalizedLanguage Lang = new LocalizedLanguage();
                Lang.LanguageId      = LANGUAGES[i];
                Lang.ParentDataTable = this;
                Lang.Keys            = Keys ?? new List <string>();
                Lang.Values          = English ?? new List <string>();
                Languages.Add(Lang);
            }

            return(Languages);
        }
 public bool Merge(LocalizedLanguage Lang)
 {
     if (LanguageId == Lang.LanguageId)
     {
         Keys.Concat(Lang.Keys);
         Values.Concat(Lang.Values);
         return true;
     }
     return false;
 }
Ejemplo n.º 4
0
 public bool Merge(LocalizedLanguage Lang)
 {
     if (LanguageId == Lang.LanguageId)
     {
         Keys.Concat(Lang.Keys);
         Values.Concat(Lang.Values);
         return(true);
     }
     return(false);
 }
 public bool Equals(LocalizedLanguage Other)
 {
     return this.LanguageId == Other.LanguageId;
 }
Ejemplo n.º 6
0
 public bool Equals(LocalizedLanguage Other)
 {
     return(this.LanguageId == Other.LanguageId);
 }