public bool CanProcess(string langCode) { if (string.IsNullOrEmpty(langCode) || !IsInstalled || !IsSupported) { return(false); } // Support multiple specified languages (e.g. "eng+fra") return(langCode.Split('+').All(code => InstalledLanguages.Any(x => x.Code == code))); }
public void LoadMainResource(string rpLanguage) { if (!InstalledLanguages.Any(r => r.Directory == rpLanguage)) { Preference.Instance.Language.Value = GetDefaultLanguage().Directory; } LoadMainResourceCore(rpLanguage); }