Example #1
0
        public static List <string> GetDictionaries(bool languageEditorMode = false)
        {
            var languages     = new List <string>();
            var path          = IO.RootDirectory + @"Resources\Interface";
            var directoryInfo = new DirectoryInfo(path);

            foreach (var info in directoryInfo.GetFiles()
                     .Where(info => info.Extension.ToLower().Equals(".txt")))
            {
                if (languageEditorMode || FileDictionary.IsDictionaryFileCorrect(info))
                {
                    languages.Add(info.Name.Replace(".txt", ""));
                }
            }

            return(languages);
        }
Example #2
0
 static Dictionaries()
 {
     Dictionary = new FileDictionary();
 }