public ResponseResult SetLang(string id) { var result = ResponseResult.Default(); try { LangTypeEnum lang = EnumHelper.ParseEnum <LangTypeEnum>(id); LocalizeHelper.SetLang(ProjectTypeEnum.Designer, lang); LocalizeHelper.SetLang(ProjectTypeEnum.Engine, lang); } catch (System.Exception ex) { result = ResponseResult.Error(LocalizeHelper.GetDesignerMessage("languagecontroller.setlang.error", ex.Message)); } return(result); }