public bool AddLanguage(Language aLanguage) { if(_LanguageHelper.AddLanguage(aLanguage)) { InternationalOperator lInternationalOperator = new InternationalOperator(aLanguage); lInternationalOperator.LoadLanguage(_Path); _InternationalOperatorDictionary.Add(aLanguage.Code, lInternationalOperator); return true; } return false; }
public void SetPath(string aPath) { _Path = aPath; _LanguageHelper.LoadLanguage(aPath); _KeyHelper.LoadKeys(aPath); List<Language> lLanguageList = _LanguageHelper.GetLanguageList(); foreach(Language aLanguage in lLanguageList) { InternationalOperator lInternationalOperator = new InternationalOperator(aLanguage); lInternationalOperator.LoadLanguage(aPath); _InternationalOperatorDictionary.Add(aLanguage.Code, lInternationalOperator); } }