예제 #1
0
        public static void AddNewLanguage(string name)
        {
            LELangDict newLang    = new LELangDict();
            LELangDict newVisLang = new LELangDict();

            MasterKeys.ForEach(masterKey => {
                newLang.Add(masterKey, string.Empty);
                newVisLang.Add(Logical2Visual(masterKey), string.Empty);
            });

            AllLangsLogical.Add(name, newLang);
            AllLangsVisual.Add(name, newVisLang);

            NeedsSave = true;
        }
예제 #2
0
        static void RebuildVisualTables()
        {
            string visKey;
            string visValue;

            AllLangsVisual.Clear();
            foreach (var langKey in AllLangsLogical.Keys)
            {
                LELangDict visLang      = new LELangDict();
                var        string_table = AllLangsLogical[langKey];

                foreach (var kvp in string_table)
                {
                    visKey   = Logical2Visual(kvp.Key);
                    visValue = Logical2Visual(kvp.Value);
                    visLang.Add(visKey, visValue);
                }
                AllLangsVisual.Add(langKey, visLang);
            }
        }