System.Globalization.I18N.___s C# (CSharp) Method

___s() public static method

@Alias GetPluralRaw and FormatRawPlural

Translates the given singular or plural HTML applying string.Format(html, arguments) to the current culture language.

Warning! Neither the html nor the htmlArguments will be encoded whatsoever

public static ___s ( this culture, string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
culture this The culture being extended
singularHTML string The HTML to be translated when count is 1
pluralHTML string The HTML to be translated when count is NOT 1
count int If count is 1 the singular HTML will be used, otherwise the plural HTML
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString ___s(this CultureInfo culture, string singularHTML, string pluralHTML, int count, params object[] htmlArguments)
        {
            var result = new MvcHtmlString(
             ((htmlArguments == null || htmlArguments.Length == 0)
                ? string.Format(count == 1 ? I18NComplete.GetText(singularHTML, lcid: culture.LCID) : I18NComplete.GetText(singularHTML, plural: true, lcid: culture.LCID), count)
                : string.Format(count == 1 ? I18NComplete.GetText(singularHTML, lcid: culture.LCID) : I18NComplete.GetText(singularHTML, plural: true, lcid: culture.LCID), new object[] { count }.Concat(htmlArguments).ToArray())));
            return
            #if DEBUG
             I18NComplete.OnGetting___s(result, culture, singularHTML, pluralHTML, count, htmlArguments) ??
            #endif
             result;
        }

Same methods

I18N::___s ( this culture, string singularHTML, string pluralHTML, int count, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString