Search Results for

    Show / Hide Table of Contents

    Class TranslationOrigin

    Contains information on the origin of translation.

    Inheritance
    object
    ExtensionDataContainer
    MetadataContainer
    TranslationOrigin
    Implements
    IEquatable<MetadataContainer>
    ICloneable<TranslationOrigin>
    IEquatable<TranslationOrigin>
    Inherited Members
    MetadataContainer.GetMetadata(string)
    MetadataContainer.SetMetadata(string, string)
    MetadataContainer.Equals(MetadataContainer)
    MetadataContainer.ShouldSerialize_metadata()
    MetadataContainer.Metadata
    ExtensionDataContainer.ExtensionData
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Sdl.Core.Bcm.BcmModel
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    [DataContract]
    public class TranslationOrigin : MetadataContainer, IEquatable<MetadataContainer>, ICloneable<TranslationOrigin>, IEquatable<TranslationOrigin>

    Constructors

    TranslationOrigin()

    Declaration
    public TranslationOrigin()

    TranslationOrigin(string, string, int, bool, bool, TextContextMatchLevel, string, TranslationOrigin)

    Initializes a new instance of the TranslationOrigin class.

    Declaration
    public TranslationOrigin(string originType, string originSystem, int matchPercent, bool isStructureContextMatch, bool isSidContextMatch, TextContextMatchLevel textContextMatchLevel, string originalTranslationHash, TranslationOrigin originBeforeAdaptation)
    Parameters
    Type Name Description
    string originType

    Type of the origin.

    string originSystem

    The origin system.

    int matchPercent

    The match percent.

    bool isStructureContextMatch

    if set to true the translation is a structure context match.

    bool isSidContextMatch

    if set to true the translation is a sID context match.

    TextContextMatchLevel textContextMatchLevel

    The text context match level.

    string originalTranslationHash

    The original translation hash.

    TranslationOrigin originBeforeAdaptation

    The TranslationOrigin before adaptation.

    Properties

    ChangeDisplayUsername

    Gets or sets the created_by_username metadata.

    Declaration
    public string ChangeDisplayUsername { get; set; }
    Property Value
    Type Description
    string

    The created_by_username metadata value.

    CreatedBy

    Gets or sets the identifier of the user who created the translation.

    Declaration
    [DataMember(Name = "createdBy", EmitDefaultValue = false)]
    public string CreatedBy { get; set; }
    Property Value
    Type Description
    string

    CreatedOn

    Gets or sets the date and time when the translation was created.

    Declaration
    [DataMember(Name = "createdOn", EmitDefaultValue = false)]
    [JsonConverter(typeof(DateTimeConverter))]
    public DateTime? CreatedOn { get; set; }
    Property Value
    Type Description
    DateTime?

    CreationDate

    Gets or sets the created_on metadata. Made obsolete by the CreatedOn property.

    Declaration
    [Obsolete("Use the CreatedOn property instead.")]
    public string CreationDate { get; set; }
    Property Value
    Type Description
    string

    The created_on metadata value.

    CreationDisplayUsername

    Gets or sets the created_by_username metadata.

    Declaration
    public string CreationDisplayUsername { get; set; }
    Property Value
    Type Description
    string

    The created_by_username metadata value.

    IsSidContextMatch

    If true, indicates that the translation originates from a system that takes ID context information into account, and that the ID context matches.

    Declaration
    [DataMember(Name = "isSidContextMatch", EmitDefaultValue = false)]
    public bool IsSidContextMatch { get; set; }
    Property Value
    Type Description
    bool

    true if this instance is sID context match; otherwise, false.

    IsStructureContextMatch

    Gets or sets a value indicating whether this instance is structure context match.

    Declaration
    [DataMember(Name = "isStructureContextMatch", EmitDefaultValue = false)]
    public bool IsStructureContextMatch { get; set; }
    Property Value
    Type Description
    bool

    true if this instance is structure context match; otherwise, false.

    Remarks

    If true, indicates that the translation originates from a system that takes structural context information into account, and that the structure context matches.

    LastModifiedDate

    Gets or sets the modified_on metadata. Made obsolete by the ModifiedOn property.

    Declaration
    [Obsolete("Use the ModifiedOn property instead.")]
    public string LastModifiedDate { get; set; }
    Property Value
    Type Description
    string

    The modified_on metadata value.

    LastModifiedUserId

    Gets or sets the last_modified_by metadata. Made obsolete by the ModifiedBy property.

    Declaration
    [Obsolete("Use the ModifiedBy property instead.")]
    public string LastModifiedUserId { get; set; }
    Property Value
    Type Description
    string

    The last_modified_by metadata value.

    LastUsedDate

    Gets or sets the used_on metadata.

    Declaration
    public string LastUsedDate { get; set; }
    Property Value
    Type Description
    string

    The used_on metadata value.

    LastUsedUserId

    Gets or sets the used_by metadata.

    Declaration
    public string LastUsedUserId { get; set; }
    Property Value
    Type Description
    string

    The used_by metadata value.

    MatchPercent

    Gets or sets the match percent.

    Declaration
    [DataMember(Name = "matchPercent")]
    public int MatchPercent { get; set; }
    Property Value
    Type Description
    int

    The match value for a translation memory match, or the confidence level for a machine translation. Should be a percentage value from 0 - 100%

    Remarks

    When a match gets adapted by interactive translation, the original match value can be read from this property on the OriginBeforeAdaptation properties.

    ModifiedBy

    Gets or sets the identifier of the user who modified the translation.

    Declaration
    [DataMember(Name = "modifiedBy", EmitDefaultValue = false)]
    public string ModifiedBy { get; set; }
    Property Value
    Type Description
    string

    ModifiedOn

    Gets or sets the date and time when the translation was modified.

    Declaration
    [DataMember(Name = "modifiedOn", EmitDefaultValue = false)]
    [JsonConverter(typeof(DateTimeConverter))]
    public DateTime? ModifiedOn { get; set; }
    Property Value
    Type Description
    DateTime?

    OriginBeforeAdaptation

    Gets or sets the TranslationOrigin before adaptation.

    Declaration
    [DataMember(Name = "originBeforeAdaptation", EmitDefaultValue = false)]
    public TranslationOrigin OriginBeforeAdaptation { get; set; }
    Property Value
    Type Description
    TranslationOrigin

    The TranslationOrigin before adaptation.

    Remarks

    Null or the origin information for the originally adapted target content.

    OriginSystem

    Gets or sets the origin system.

    Declaration
    [DataMember(Name = "originSystem")]
    public string OriginSystem { get; set; }
    Property Value
    Type Description
    string

    The originating system name for a segment translation.

    OriginType

    Gets or sets the translation origin type.

    Declaration
    [DataMember(Name = "originType")]
    public string OriginType { get; set; }
    Property Value
    Type Description
    string

    The translation origin type.

    Remarks

    Seed DefaultTranslationOrigin for default values.

    OriginalTranslationHash

    A hash value that identifies the entry in the TM that provided the translation. This is used to update the correct TM entry if a translator provides an updated version of the translation.

    Declaration
    [DataMember(Name = "originalTranslationHash", EmitDefaultValue = false)]
    public string OriginalTranslationHash { get; set; }
    Property Value
    Type Description
    string

    The original translation hash.

    TextContextMatchLevel

    Indicates whether the match originates from a source where the textual surrounding content corresponds to the text surrounding this segment.

    Declaration
    [DataMember(Name = "textContextMatchLevel")]
    [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
    public TextContextMatchLevel TextContextMatchLevel { get; set; }
    Property Value
    Type Description
    TextContextMatchLevel

    The TextContextMatchLevel value.

    TranslationQualityEstimations

    Stores a list of TranslationEstimation (persisting TQE data) objects

    Declaration
    [DataMember(Name = "translationQualityEstimations", EmitDefaultValue = false, IsRequired = false)]
    public List<TranslationQualityEstimation> TranslationQualityEstimations { get; set; }
    Property Value
    Type Description
    List<TranslationQualityEstimation>

    UseCount

    Gets or sets the used_on metadata.

    Declaration
    public string UseCount { get; set; }
    Property Value
    Type Description
    string

    The used_on metadata value.

    UseDisplayUsername

    Gets or sets the use_by_username metadata.

    Declaration
    public string UseDisplayUsername { get; set; }
    Property Value
    Type Description
    string

    The use_by_username metadata value.

    Methods

    Clone()

    Clones this instance.

    Declaration
    public TranslationOrigin Clone()
    Returns
    Type Description
    TranslationOrigin

    A deep clone of this instance.

    Equals(TranslationOrigin)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(TranslationOrigin other)
    Parameters
    Type Name Description
    TranslationOrigin other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    Equals(object)

    Performs a deep-equals comparison.
    System.Object.Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    MetadataContainer.Equals(object)

    GetHashCode()

    Performs a deep-equals comparison.
    System.Object.Equals(object)

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    MetadataContainer.GetHashCode()

    Implements

    IEquatable<T>
    ICloneable<T>
    IEquatable<T>

    See Also

    MetadataContainer
    In this article
    Back to top Generated by DocFX