Table of Contents

Class TranslationControl

Namespace
InSite.Admin.Assets.Contents.Controls
Assembly
InSite.UI.dll
public class TranslationControl : BaseUserControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IFilterResolutionService, IAttributeAccessor, INamingContainer, IUserControlDesignerAccessor
Inheritance
TranslationControl
Implements
Inherited Members

Constructors

TranslationControl()

public TranslationControl()

Fields

CommonScript

CommonScript control.

protected PageFooterContent CommonScript

Field Value

PageFooterContent

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

CustomLabel

public const string CustomLabel = "Custom Translation for <strong>{0}</strong>"

Field Value

string

DefaultLanguageSelector

DefaultLanguageSelector control.

protected LanguageComboBox DefaultLanguageSelector

Field Value

LanguageComboBox

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

DefaultLiteral

DefaultLiteral control.

protected HtmlGenericControl DefaultLiteral

Field Value

HtmlGenericControl

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

DefaultText

DefaultText control.

protected TextBox DefaultText

Field Value

TextBox

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

IsOrganizationSpecific

IsOrganizationSpecific control.

protected CheckBox IsOrganizationSpecific

Field Value

CheckBox

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

OrganizationSpecificRow

OrganizationSpecificRow control.

protected HtmlGenericControl OrganizationSpecificRow

Field Value

HtmlGenericControl

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

OtherTranslations

OtherTranslations control.

protected Repeater OtherTranslations

Field Value

Repeater

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

RequestGoogleTranslation

RequestGoogleTranslation control.

protected IconButton RequestGoogleTranslation

Field Value

IconButton

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

RequiredValidator

RequiredValidator control.

protected RequiredValidator RequiredValidator

Field Value

RequiredValidator

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

SelectButton

SelectButton control.

protected Button SelectButton

Field Value

Button

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

SelectedLanguageCode

SelectedLanguageCode control.

protected HiddenField SelectedLanguageCode

Field Value

HiddenField

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

TranslatedLanguageSelector

TranslatedLanguageSelector control.

protected LanguageComboBox TranslatedLanguageSelector

Field Value

LanguageComboBox

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

TranslatedText

TranslatedText control.

protected TextBox TranslatedText

Field Value

TextBox

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

TranslatedTextRow

TranslatedTextRow control.

protected HtmlGenericControl TranslatedTextRow

Field Value

HtmlGenericControl

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

TranslationColumn

TranslationColumn control.

protected HtmlGenericControl TranslationColumn

Field Value

HtmlGenericControl

Remarks

Auto-generated field. To modify move field declaration from designer file to code-behind file.

Properties

AllowOrganizationSpecific

public bool AllowOrganizationSpecific { get; set; }

Property Value

bool

DefaultLanguage

public string DefaultLanguage { get; set; }

Property Value

string

IncludeLanguage

public string[] IncludeLanguage { get; set; }

Property Value

string[]

Required

public bool Required { get; set; }

Property Value

bool

ShowExcludedLanguage

public bool ShowExcludedLanguage { get; set; }

Property Value

bool

TextMode

public TextBoxMode TextMode { get; set; }

Property Value

TextBoxMode

Methods

GetTranslation()

public string GetTranslation()

Returns

string

OnInit(EventArgs)

protected override void OnInit(EventArgs e)

Parameters

e EventArgs

OnLoad(EventArgs)

protected override void OnLoad(EventArgs e)

Parameters

e EventArgs

OnPreRender(EventArgs)

protected override void OnPreRender(EventArgs e)

Parameters

e EventArgs

SetDefault()

public void SetDefault()

SetTranslation(string, string)

public void SetTranslation(string translation, string language)

Parameters

translation string
language string