Search Results for

    Show / Hide Table of Contents
    View Source

    Class DictionaryTranslation

    Represents a translation for a DictionaryItem

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class DictionaryTranslation : EntityBase, IDictionaryTranslation, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    DictionaryTranslation(Int32, String)

    Declaration
    public DictionaryTranslation(int languageId, string value)
    Parameters
    Type Name Description
    System.Int32 languageId
    System.String value
    View Source

    DictionaryTranslation(Int32, String, Guid)

    Declaration
    public DictionaryTranslation(int languageId, string value, Guid uniqueId)
    Parameters
    Type Name Description
    System.Int32 languageId
    System.String value
    Guid uniqueId
    View Source

    DictionaryTranslation(ILanguage, String)

    Declaration
    public DictionaryTranslation(ILanguage language, string value)
    Parameters
    Type Name Description
    ILanguage language
    System.String value
    View Source

    DictionaryTranslation(ILanguage, String, Guid)

    Declaration
    public DictionaryTranslation(ILanguage language, string value, Guid uniqueId)
    Parameters
    Type Name Description
    ILanguage language
    System.String value
    Guid uniqueId

    Properties

    View Source

    GetLanguage

    Declaration
    public Func<int, ILanguage>? GetLanguage { get; set; }
    Property Value
    Type Description
    System.Nullable<Func<System.Int32, ILanguage>>
    View Source

    Language

    Gets or sets the Language for the translation

    Declaration
    [DataMember]
    public ILanguage Language { get; set; }
    Property Value
    Type Description
    ILanguage
    Remarks

    Marked as DoNotClone - TODO: this member shouldn't really exist here in the first place, the DictionaryItem class will have a deep hierarchy of objects which all get deep cloned which we don't want. This should have simply just referenced a language ID not the actual language object. In v8 we need to fix this. We're going to have to do the same hacky stuff we had to do with the Template/File contents so that this is returned on a callback.

    View Source

    LanguageId

    Declaration
    public int LanguageId { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    Value

    Gets or sets the translated text

    Declaration
    [DataMember]
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    PerformDeepClone(Object)

    Declaration
    protected override void PerformDeepClone(object clone)
    Parameters
    Type Name Description
    System.Object clone
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DictionaryTranslation(Int32, String)
      • DictionaryTranslation(Int32, String, Guid)
      • DictionaryTranslation(ILanguage, String)
      • DictionaryTranslation(ILanguage, String, Guid)
    • Properties
      • GetLanguage
      • Language
      • LanguageId
      • Value
    • Methods
      • PerformDeepClone(Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX