public static string LoadKDString(string description, string resourceID, SubSystemType systemType, params object[] args) { if (TryGetSlKDString(resourceID, description, systemType.ToString(), out description)) { return(description); } return(LoadKDString(description, resourceID, CultureInfoUtils.GetCurrentCulture().Name, systemType.ToString(), args)); }
public static string LoadResFormat(string description, string resourceID, string sLanguage, SubSystemType systemType, params object[] args) { string str = LoadKDString(description, resourceID, sLanguage, systemType.ToString(), args); if (args != null) { int length = args.Length; for (int i = 1; i <= length; i++) { str = str.Replace("%" + i, args[i - 1].ToString()); } } return(str); }
public static string LoadResFormat(string description, string resourceID, SubSystemType systemType, params object[] args) { return(LoadResFormat(description, resourceID, systemType.ToString(), args)); }