November Happy Hour will be moved to Thursday December 5th.

Class HtmlHelperTranslationExtensions

Inheritance
System.Object
HtmlHelperTranslationExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.Mvc.Html
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public static class HtmlHelperTranslationExtensions

Methods

Translate(HtmlHelper, String)

Declaration
public static string Translate(this HtmlHelper html, string translationKey)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html
System.String translationKey
Returns
Type Description
System.String

TranslatedButton(HtmlHelper, String, ShellInputType, String, Object)

Declaration
public static string TranslatedButton(this HtmlHelper html, string name, ShellInputType inputType, string translationKey, object htmlAttributes)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html
System.String name
ShellInputType inputType
System.String translationKey
System.Object htmlAttributes
Returns
Type Description
System.String

TranslatedLabel(HtmlHelper, String, String)

Declaration
public static string TranslatedLabel(this HtmlHelper html, string targetID, string translationKey)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html
System.String targetID
System.String translationKey
Returns
Type Description
System.String

TranslatedTextBox(HtmlHelper, String, String, Object, Object)

Declaration
public static string TranslatedTextBox(this HtmlHelper htmlHelper, string name, string translationKey, object value, object htmlAttributes)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String name
System.String translationKey
System.Object value
System.Object htmlAttributes
Returns
Type Description
System.String

TranslateFallback(HtmlHelper, String, String)

Declaration
public static string TranslateFallback(this HtmlHelper htmlHelper, string translationKey, string fallback)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper
System.String translationKey
System.String fallback
Returns
Type Description
System.String

TranslateFormat(HtmlHelper, String, Object[])

Declaration
public static string TranslateFormat(this HtmlHelper html, string translationKey, params object[] values)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html
System.String translationKey
System.Object[] values
Returns
Type Description
System.String

TranslateForScript(HtmlHelper, String)

Declaration
public static string TranslateForScript(this HtmlHelper html, string translationKey)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html
System.String translationKey
Returns
Type Description
System.String