Class TranslationOrigin
Represents the origin of a translation, including metadata such as the type, originating system, match percentage, and audit information.
Inheritance
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class TranslationOrigin
Remarks
This class is used to store and manage information about the source of a translation, such as whether it originated from a translation memory, machine translation, or other systems. It also includes audit fields for tracking creation and modification details.
Constructors
TranslationOrigin()
Initializes a new instance of the TranslationOrigin class.
Declaration
public TranslationOrigin()
TranslationOrigin(String)
Initializes a new instance of the TranslationOrigin class.
Declaration
public TranslationOrigin(string originType)
Parameters
Type | Name | Description |
---|---|---|
String | originType |
TranslationOrigin(String, String, Int32)
Initializes a new instance of the TranslationOrigin class.
Declaration
public TranslationOrigin(string originType, string originSystem, int matchPercent)
Parameters
Type | Name | Description |
---|---|---|
String | originType | Type of the origin. |
String | originSystem | The origin system. |
Int32 | matchPercent | The match percent. |
Properties
CreatedBy
Gets or sets the identifier of the user who created the translation.
Declaration
public string CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
String |
CreatedOn
Gets or sets the date and time when the translation was created.
Declaration
public DateTime? CreatedOn { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
MatchPercent
Gets or sets the match percent.
Declaration
public int MatchPercent { get; set; }
Property Value
Type | Description |
---|---|
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% |
ModifiedBy
Gets or sets the identifier of the user who modified the translation.
Declaration
public string ModifiedBy { get; set; }
Property Value
Type | Description |
---|---|
String |
ModifiedOn
Gets or sets the date and time when the translation was modified.
Declaration
public DateTime? ModifiedOn { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
OriginSystem
Gets or sets the origin system.
Declaration
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. Can not be null or empty.
Declaration
public string OriginType { get; set; }
Property Value
Type | Description |
---|---|
String | The translation origin type. |
Remarks
Seed DefaultTranslationOrigin for default values.