Class LegacyLanguage
Represents a language within a legacy translation memory. Provides a way to keep track of the original language code and name, as well as the associated CultureCode object.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApiUpgrade
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class LegacyLanguage
Constructors
LegacyLanguage()
Initializes a new instance with default values.
Declaration
public LegacyLanguage()
LegacyLanguage(CultureCode)
Constructor with culture.
Declaration
public LegacyLanguage(CultureCode cultureCode)
Parameters
Type | Name | Description |
---|---|---|
CultureCode | cultureCode |
Properties
Culture
Gets or sets the CultureCode object that corresponds to this legacy language.
Declaration
public CultureCode Culture { get; set; }
Property Value
Type | Description |
---|---|
CultureCode |
NativeCode
Gets or sets the native language code, as used by the legacy translation memory.
Declaration
public string NativeCode { get; set; }
Property Value
Type | Description |
---|---|
string |
NativeName
Gets or sets the native language name, as used by the legacy translation memory.
Declaration
public string NativeName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(object)
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this object |