Class DictionaryTranslation
Represents a translation for a DictionaryItem
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class DictionaryTranslation : EntityBase, IDictionaryTranslation, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceDictionaryTranslation(ILanguage, string)
Initializes a new instance of the DictionaryTranslation class.
Declaration
public DictionaryTranslation(ILanguage language, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| ILanguage | language | The language for this translation. |
| string | value | The translated text. |
DictionaryTranslation(ILanguage, string, Guid)
Initializes a new instance of the DictionaryTranslation class with a unique identifier.
Declaration
public DictionaryTranslation(ILanguage language, string value, Guid uniqueId)
Parameters
| Type | Name | Description |
|---|---|---|
| ILanguage | language | The language for this translation. |
| string | value | The translated text. |
| Guid | uniqueId | The unique identifier for the translation. |
Properties
View SourceLanguageIsoCode
Gets the ISO code of the language.
Declaration
public string LanguageIsoCode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or sets the translated text
Declaration
[DataMember]
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |