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

__q() public static method

Quotes the text as the xgettext cannot correctly extract values from attributes

Translates the given html applying '"'+HttpUtility.HtmlAttributeEncode(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

Usage: <input type="submit" value=@__q("Save") /> -- Note the missing quotes!

public static __q ( string html ) : System.Web.Mvc.MvcHtmlString
html string The text to be translated
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString __q(string html, params object[] arguments)
        {
            return CultureInfo.CurrentUICulture.__q(html, arguments);
        }