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;
        }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #6
0
 public bool Equals(LocalizedLanguage Other)
 {
     return(this.LanguageId == Other.LanguageId);
 }