Beispiel #1
0
 public void LoadLanguage()
 {
     if (!IsValidLanguage(LanguageStr))
     {
         throw new Exception("Language is not valid in mainSettings!");
     }
     Language = new Lang.Language();
     Language.Load($"Config/Lang/{LanguageStr}");
 }
Beispiel #2
0
 public void LoadLanguage()
 {
     if (!IsValidLanguage(LanguageStr))
     {
         throw new Exception("Language is not valid in mainSettings!");
     }
     Language = new Lang.Language();
     Language.Load(Path.Combine(ConfigPath, $"Lang/{LanguageStr}"));
 }