public static List <LocaleElement> GetAll(string from, string groupName)
        {
            List <LocaleElement> list = new List <LocaleElement>();

            if (LocaleSystem.ExistsGroup(from, groupName))
            {
                FileInfo fi = new FileInfo(LocaleSystem.GetDirectoryString(from) + groupName + ".tsv");
                using (StreamReader sr = new StreamReader(fi.Open(FileMode.Open, FileAccess.Read, FileShare.Read)))
                {
                    int next = 0;
                    while (!sr.EndOfStream)
                    {
                        LocaleElement le = LocaleElement.Parse(sr, ref next);
                        list.Add(le);
                    }
                }
            }
            return(list);
        }
 public static LocaleElement GetLocale(string from, string groupName, string name, string language)
 {
     if (LocaleSystem.ExistsGroup(from, groupName))
     {
         FileInfo fi = new FileInfo(LocaleSystem.GetDirectoryString(from) + groupName + ".tsv");
         using (StreamReader sr = new StreamReader(fi.Open(FileMode.Open, FileAccess.Read, FileShare.Read)))
         {
             int next = 0;
             while (!sr.EndOfStream)
             {
                 LocaleElement le = LocaleElement.Parse(sr, ref next);
                 if (le.Name == name && le.Language == language)
                 {
                     return(le);
                 }
             }
         }
     }
     return(null);
 }