Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public static string LoadResFormat(string description, string resourceID, SubSystemType systemType, params object[] args)
 {
     return(LoadResFormat(description, resourceID, systemType.ToString(), args));
 }