C# Class System.Web.Mvc.LocalizableController

A transparent localizable class which Provides methods that respond to HTTP requests that are made to an ASP.NET MVC Web site.
Inheritance: Controller
Show file Open project: adaptabi/i18N-Complete

Public Methods

Method Description
GetRaw ( string html, object>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString

@Alias ___ (3 underscores) and FormatRaw

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

For each argument the escape func will be called before applying the format

Private Methods

Method Description
Format ( string text ) : string
FormatHtml ( string html ) : System.Web.Mvc.MvcHtmlString
FormatHtmlPlural ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
FormatPlural ( string singular, string plural, int count ) : string
FormatRaw ( string html ) : System.Web.Mvc.MvcHtmlString
FormatRaw ( string html, object>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
FormatRawPlural ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
FormatRawPlural ( string singularHTML, string pluralHTML, int count, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
GetHtml ( string html ) : System.Web.Mvc.MvcHtmlString
GetPluralHtml ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
GetPluralRaw ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
GetPluralRaw ( string singularHTML, string pluralHTML, int count, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
GetPluralString ( string singular, string plural, int count ) : string
GetRaw ( string html ) : System.Web.Mvc.MvcHtmlString
GetString ( string text ) : string
_ ( string text ) : string
__ ( string html ) : System.Web.Mvc.MvcHtmlString
___ ( string html ) : System.Web.Mvc.MvcHtmlString
___ ( string html, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
___q ( string html ) : System.Web.Mvc.MvcHtmlString
___s ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
___s ( string singularHTML, string pluralHTML, int count, string>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
__q ( string html ) : System.Web.Mvc.MvcHtmlString
__s ( string singularHTML, string pluralHTML, int count ) : System.Web.Mvc.MvcHtmlString
_s ( string singular, string plural, int count ) : string

Method Details

GetRaw() public static method

@Alias ___ (3 underscores) and FormatRaw

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

For each argument the escape func will be called before applying the format

public static GetRaw ( string html, object>.Func escapeArgumentFunc ) : System.Web.Mvc.MvcHtmlString
html string The html to be translated
escapeArgumentFunc object>.Func The func to be applied for each argument .i.e. a => HttpUtility.HtmlAttributeEncode(a)
return System.Web.Mvc.MvcHtmlString