Class Language
Assembly: Sdl.Core.Globalization.dll
Syntax
[DataContract]
public class Language : LanguageBase, ICloneable, IDeserializationCallback
Constructors
Language()
Declaration
Language(CultureInfo)
Declaration
[Obsolete("Use GetLanguageAsync")]
public Language(CultureInfo cultureInfo)
Parameters
Language(string)
Declaration
public Language(string isoAbbreviation)
Parameters
Type |
Name |
Description |
string |
isoAbbreviation |
|
Properties
CultureInfo
Declaration
[IgnoreDataMember]
public CultureInfo CultureInfo { get; }
Property Value
DefaultSpecificCulture
Declaration
[JsonIgnore]
[Obsolete("Obsolete, use DefaultSpecificLanguage")]
public Language DefaultSpecificCulture { get; set; }
Property Value
DefaultSpecificCultureCode
Declaration
[DataMember]
[Obsolete("Obsolete, use DefaultSpecificLanguageCode")]
[JsonIgnore]
public string DefaultSpecificCultureCode { get; set; }
Property Value
DefaultSpecificLanguage
Declaration
[JsonIgnore]
public Language DefaultSpecificLanguage { get; set; }
Property Value
DisplayName
Declaration
public string DisplayName { get; }
Property Value
Image
Declaration
[Obsolete("Obsolete, use GetFlagImage")]
public Image Image { get; }
Property Value
IsSupported
Declaration
public bool IsSupported { get; }
Property Value
LdmlData
Declaration
[JsonIgnore]
public string LdmlData { get; }
Property Value
ParentIsoCode
Declaration
[DataMember]
[Obsolete("Obsolete, use ParentLanguageCode")]
[JsonIgnore]
public string ParentIsoCode { get; set; }
Property Value
ParentLanguage
Declaration
[JsonIgnore]
public Language ParentLanguage { get; }
Property Value
RegionalVariants
Declaration
[JsonIgnore]
public IList<Language> RegionalVariants { get; }
Property Value
Methods
Clone()
Declaration
Returns
GetAlternativeLanguageCodes(string)
Declaration
[Obsolete("Obsolete, use LanguageRegistryApi.GetAlternativeLanguageCodes")]
public string[] GetAlternativeLanguageCodes(string productId)
Parameters
Type |
Name |
Description |
string |
productId |
|
Returns
Declaration
public string GetDisplayName(LanguageFormat languageFormat, bool includeCountry)
Parameters
Returns
GetFlagImage(bool, float, int)
Declaration
public Image GetFlagImage(bool useFlag = true, float scaleFactor = 1, int baseSize = 24)
Parameters
Type |
Name |
Description |
bool |
useFlag |
|
float |
scaleFactor |
|
int |
baseSize |
|
Returns
GetImage(bool)
Declaration
[Obsolete("Obsolete, use GetFlagImage")]
public Image GetImage(bool useFlag)
Parameters
Type |
Name |
Description |
bool |
useFlag |
|
Returns
OnDeserialization(object)
Declaration
public void OnDeserialization(object sender)
Parameters
Type |
Name |
Description |
object |
sender |
|
ToLanguage(LanguageBase)
Declaration
public static Language ToLanguage(LanguageBase l)
Parameters
Returns
Implements