Class TranslationOrigin
Contains information on the origin of translation.
Implements
Inherited Members
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 |
| bool | isSidContextMatch | if set to |
| 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 |
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 |
CreationDisplayUsername
Gets or sets the created_by_username metadata.
Declaration
public string CreationDisplayUsername { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[DataMember(Name = "isSidContextMatch", EmitDefaultValue = false)]
public bool IsSidContextMatch { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
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 |
|
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 |
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 |
LastUsedDate
Gets or sets the used_on metadata.
Declaration
public string LastUsedDate { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The |
LastUsedUserId
Gets or sets the used_by metadata.
Declaration
public string LastUsedUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The |
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 |
UseDisplayUsername
Gets or sets the use_by_username metadata.
Declaration
public string UseDisplayUsername { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| bool | 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 |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |