OnGetting__q() static private method

Throws the Getting__q global event

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!

static private OnGetting__q ( System.Web.Mvc.MvcHtmlString defaultResult, CultureInfo culture, string html ) : System.Web.Mvc.MvcHtmlString
defaultResult System.Web.Mvc.MvcHtmlString The I18NComplete default result. Returning null will fallback on this result, otherwise return a custom value to oveerride this.
culture CultureInfo The culture this translation is being translated
html string The text to be translated
return System.Web.Mvc.MvcHtmlString
        /// <summary>
        ///     <para>Quotes the text as the xgettext cannot correctly extract values from attributes</para>
        ///     <para>Translates the given html applying '"'+HttpUtility.HtmlAttributeEncode(string.Format(html, arguments.Select(a =&gt; HttpUtility.HtmlEncode(a))))+'"' to the current culture language. </para>
        ///     <para>The html will be kept as it is, while arguments will be automatically HTML Encoded</para>
        ///     <para>Usage: &lt;input type="submit" value=@__q("Save") /&gt;  -- Note the missing quotes!</para>
        /// </summary>
        /// <param name="culture">The culture being extended</param>
        /// <param name="html">The html text to be translated</param>
        /// <param name="arguments">Custom arguments list to be passed to string.Format</param>
        /// <returns>The translated formatted html as MvcHtmlString</returns>
        /// <created author="laurentiu.macovei" date="Fri, 13 Jan 2012 03:55:43 GMT"/>
        public static MvcHtmlString __q(this CultureInfo culture, string html, params object[] arguments)
        {
            var result = new MvcHtmlString('"' + HttpUtility.HtmlAttributeEncode(string.Format(I18NComplete.GetText(html, lcid: culture.LCID), arguments.Select(a => HttpUtility.HtmlEncode(a)).ToArray())) + '"');

            return
                (#if DEBUG
                 I18NComplete.OnGetting__q(result, culture, html, arguments) ??
#endif
                 result);
        }