System.Web.Mvc.LocalizableWebViewPage.FormatHtmlPlural C# (CSharp) Method

FormatHtmlPlural() public static method

@Alias GetPluralHtml 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 FormatHtmlPlural ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
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 FormatHtmlPlural(string singularHTML, string pluralHTML, int count, params object[] arguments)
        {
            return CultureInfo.CurrentUICulture.__s(singularHTML, pluralHTML, count, arguments);
        }