Search Results for

    Show / Hide Table of Contents

    Class TranslationOrigin

    Contains information on the origin of translation.

    Inheritance
    System.Object
    ExtensionDataContainer
    MetadataContainer
    TranslationOrigin
    Implements
    System.IEquatable<MetadataContainer>
    ICloneable<TranslationOrigin>
    System.IEquatable<TranslationOrigin>
    Inherited Members
    MetadataContainer.GetMetadata(String)
    MetadataContainer.SetMetadata(String, String)
    MetadataContainer.Equals(MetadataContainer)
    MetadataContainer.ShouldSerialize_metadata()
    MetadataContainer.Metadata
    ExtensionDataContainer.ExtensionData
    Namespace: Sdl.Core.Bcm.BcmModel
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    public class TranslationOrigin : MetadataContainer, ICloneable<TranslationOrigin>

    Constructors

    TranslationOrigin()

    Declaration
    public TranslationOrigin()

    TranslationOrigin(String, String, Int32, Boolean, Boolean, 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
    System.String originType

    Type of the origin.

    System.String originSystem

    The origin system.

    System.Int32 matchPercent

    The match percent.

    System.Boolean isStructureContextMatch

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

    System.Boolean isSidContextMatch

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

    TextContextMatchLevel textContextMatchLevel

    The text context match level.

    System.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
    System.String

    The created_by_username metadata value.

    CreatedBy

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

    Declaration
    public string CreatedBy { get; set; }
    Property Value
    Type Description
    System.String

    CreatedOn

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

    Declaration
    public Nullable<DateTime> CreatedOn { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    CreationDate

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

    Declaration
    public string CreationDate { get; set; }
    Property Value
    Type Description
    System.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
    System.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
    public bool IsSidContextMatch { get; set; }
    Property Value
    Type Description
    System.Boolean

    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
    public bool IsStructureContextMatch { get; set; }
    Property Value
    Type Description
    System.Boolean

    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
    public string LastModifiedDate { get; set; }
    Property Value
    Type Description
    System.String

    The modified_on metadata value.

    LastModifiedUserId

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

    Declaration
    public string LastModifiedUserId { get; set; }
    Property Value
    Type Description
    System.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
    System.String

    The used_on metadata value.

    LastUsedUserId

    Gets or sets the used_by metadata.

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

    The used_by metadata value.

    MatchPercent

    Gets or sets the match percent.

    Declaration
    public int MatchPercent { get; set; }
    Property Value
    Type Description
    System.Int32

    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
    public string ModifiedBy { get; set; }
    Property Value
    Type Description
    System.String

    ModifiedOn

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

    Declaration
    public Nullable<DateTime> ModifiedOn { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    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
    public string OriginalTranslationHash { get; set; }
    Property Value
    Type Description
    System.String

    The original translation hash.

    OriginBeforeAdaptation

    Gets or sets the TranslationOrigin before adaptation.

    Declaration
    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
    public string OriginSystem { get; set; }
    Property Value
    Type Description
    System.String

    The originating system name for a segment translation.

    OriginType

    Gets or sets the translation origin type.

    Declaration
    public string OriginType { get; set; }
    Property Value
    Type Description
    System.String

    The translation origin type.

    Remarks

    Seed DefaultTranslationOrigin for default values.

    TextContextMatchLevel

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

    Declaration
    public TextContextMatchLevel TextContextMatchLevel { get; set; }
    Property Value
    Type Description
    TextContextMatchLevel

    The TextContextMatchLevel value.

    TranslationQualityEstimations

    Stores a list of TranslationEstimation (persisting TQE data) objects

    Declaration
    public List<TranslationQualityEstimation> TranslationQualityEstimations { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<TranslationQualityEstimation>

    UseCount

    Gets or sets the used_on metadata.

    Declaration
    public string UseCount { get; set; }
    Property Value
    Type Description
    System.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
    System.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
    System.Boolean

    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
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    MetadataContainer.Equals(Object)

    GetHashCode()

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

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

    Implements

    System.IEquatable<>
    ICloneable<T>
    System.IEquatable<>

    See Also

    MetadataContainer

    On this page

    Back to top Generated by DocFX