示例#1
0
 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)));
 }
示例#2
0
        public void LoadMainResource(string rpLanguage)
        {
            if (!InstalledLanguages.Any(r => r.Directory == rpLanguage))
            {
                Preference.Instance.Language.Value = GetDefaultLanguage().Directory;
            }

            LoadMainResourceCore(rpLanguage);
        }