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 Sdl.Core.Globalization.CultureCode object.
Inheritance
Object
LegacyLanguage
Inherited Members
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.Upgrade
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 Sdl.Core.Globalization.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 |
---|---|
Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
System.Object.GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this object |
Overrides
System.Object.GetHashCode()