Esempio n. 1
0
        /// <summary>
        /// Integrates the regex based translations into the official system
        /// </summary>
        public static String Format(String template, params String[] list)
        {
            String output = (String)_Format.Invoke(Localizer.Instance, new Object[] { template, list });

            if (output == template)
            {
                return(template);
            }
            return(LanguagePatches.Translate(output, null));
        }
Esempio n. 2
0
        /// <summary>
        /// Integrates the regex based translations into the official system
        /// </summary>
        public static String Format(String template, params Object[] list)
        {
            String[] array = new String[list.Length];
            for (Int32 i = 0; i < list.Length; i++)
            {
                array[i] = list[i].ToString();
            }
            String output = (String)_Format.Invoke(Localizer.Instance, new Object[] { template, array });

            if (output == template)
            {
                return(template);
            }
            return(LanguagePatches.Translate(output, null));
        }