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

GetPluralHtml() public static method

@Alias __ (2 underscores) and FormatHtmlPlural

Translates the given singular or plural HTML applying string.Format(html, arguments.Select(a => HttpUtility.HtmlEncode(a))) to the current culture language.

The singular/plural HTML will be kept as it is, while arguments will be automatically HTML Encoded

public static GetPluralHtml ( 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 text
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString GetPluralHtml(this CultureInfo culture, string singularHTML, string pluralHTML, int count, params object[] arguments)
        {
            return __s(culture, singularHTML, pluralHTML, count, arguments);
        }