Esempio n. 1
0
        /// <summary>
        /// 设置项目默认语言==中文
        /// </summary>
        /// <param name="project">项目类型</param>
        public static void SetDefault(ProjectTypeEnum project)
        {
            var lang = LanguageCachedHelper.GetLang(project);

            if (lang == LangTypeEnum.none)
            {
                LanguageCachedHelper.SetLang(project, LangTypeEnum.zh);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 设置当前项目的语言类型
 /// </summary>
 /// <param name="project">项目</param>
 /// <param name="lang">语言</param>
 public static void SetLang(ProjectTypeEnum project, LangTypeEnum lang)
 {
     LanguageCachedHelper.SetLang(project, lang);
 }