Class TranslationOrigin
Contains information on the origin of translation.
Inherited Members
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 |
System.Boolean | isSidContextMatch | if set to |
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 |
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 |
CreationDisplayUsername
Gets or sets the created_by_username
metadata.
Declaration
public string CreationDisplayUsername { get; set; }
Property Value
Type | Description |
---|---|
System.String | The |
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 |
|
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 |
|
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 |
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 |
LastUsedDate
Gets or sets the used_on
metadata.
Declaration
public string LastUsedDate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The |
LastUsedUserId
Gets or sets the used_by
metadata.
Declaration
public string LastUsedUserId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The |
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 |
UseDisplayUsername
Gets or sets the use_by_username
metadata.
Declaration
public string UseDisplayUsername { get; set; }
Property Value
Type | Description |
---|---|
System.String | The |
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 |
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
GetHashCode()
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |