public CPViewPage() { string lang_code = Cookies.GetValue("CP.Lang", true); //ngon ngu mac dinh neu chua co if (lang_code == string.Empty) { lang_code = "vi-VN"; } CurrentLang = new SysLangEntity(); CurrentLang.Code = lang_code; ResourceService = new IniResourceService(Server.MapPath("~/" + HL.Core.Web.Setting.Sys_CPDir + "/Views/Lang/" + lang_code + ".ini")); }
public CPViewPage() { var langCode = Global.Cookies.GetValue("CP.Lang", true); //ngon ngu mac dinh neu chua co if (langCode?.Length == 0) { langCode = "vi-VN"; } CurrentLang = new SysLangEntity { Code = langCode }; ResourceService = new IniResourceService(Server.MapPath("~/" + Setting.Sys_AdminDir + "/Views/Lang/" + langCode + ".ini")); }