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

__() public static method

@Alias GetHtml and FormatHtml

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

The html will be kept as it is, while arguments will be automatically HTML Encoded

public static __ ( this culture, string html ) : System.Web.Mvc.MvcHtmlString
culture this The culture being extended
html string The html to be translated
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString __(this CultureInfo culture, string html, params object[] arguments)
        {
            var result = new MvcHtmlString(string.Format(I18NComplete.GetText(html, lcid: culture.LCID),
                arguments.Select(a => HttpUtility.HtmlEncode(a)).ToArray()));
            return
            #if DEBUG
             I18NComplete.OnGetting__(result, culture, html, arguments) ??
            #endif
             result;
        }