Class LanguageBase
Assembly: Sdl.Core.Globalization.Async.dll
Syntax
[DataContract]
public class LanguageBase : LanguageData
Constructors
Declaration
protected LanguageBase(ICultureMetadataManager cultureMetadataManager)
Parameters
Fields
Declaration
protected ICultureMetadataManager CultureMetadataManager
Field Value
_defaultSpecificLanguageResult
Declaration
protected LanguageBase _defaultSpecificLanguageResult
Field Value
_defaultSpecificLanguageRetrievalAttempted
Declaration
protected bool _defaultSpecificLanguageRetrievalAttempted
Field Value
_evaluationResult
Declaration
protected LanguageBase.EvaluationResult _evaluationResult
Field Value
_isoAbbreviation
Declaration
protected string _isoAbbreviation
Field Value
_lazyCultureInfo
Declaration
protected CultureInfo _lazyCultureInfo
Field Value
_regionalVariantsResult
Declaration
protected IList<LanguageBase> _regionalVariantsResult
Field Value
Properties
DefaultDisplaySettings
Declaration
public static LanguageDisplaySettings DefaultDisplaySettings { get; }
Property Value
IsValid
Declaration
public bool IsValid { get; }
Property Value
IsoAbbreviation
Declaration
[DataMember]
[JsonIgnore]
public string IsoAbbreviation { get; }
Property Value
LanguageCode
Declaration
[DataMember]
[JsonProperty(Order = 1)]
public override string LanguageCode { get; set; }
Property Value
Overrides
UseBlankAsSentenceSeparator
Declaration
public bool UseBlankAsSentenceSeparator { get; }
Property Value
UseBlankAsWordSeparator
Declaration
public bool UseBlankAsWordSeparator { get; }
Property Value
UsesCharacterCounts
Declaration
public bool UsesCharacterCounts { get; }
Property Value
Methods
Equals(LanguageBase, LanguageBase)
Declaration
public static bool Equals(LanguageBase language1, LanguageBase language2)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(string, string)
Declaration
public static bool Equals(string isoAbbreviation1, string isoAbbreviation2)
Parameters
Type |
Name |
Description |
string |
isoAbbreviation1 |
|
string |
isoAbbreviation2 |
|
Returns
Declaration
protected static string FormatIsoCode(string isoCode, bool includeCountry)
Parameters
Type |
Name |
Description |
string |
isoCode |
|
bool |
includeCountry |
|
Returns
GetCultureInfoAsync()
Declaration
public Task<CultureInfo> GetCultureInfoAsync()
Returns
GetDefaultSpecificLanguageAsync()
Declaration
public Task<LanguageBase> GetDefaultSpecificLanguageAsync()
Returns
GetDisplayNameAsync()
Declaration
public Task<string> GetDisplayNameAsync()
Returns
Declaration
public Task<string> GetDisplayNameAsync(LanguageFormat languageFormat, bool includeCountry)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetIsSupportedAsync()
Declaration
public Task<bool> GetIsSupportedAsync()
Returns
GetParentLanguageAsync()
Declaration
public Task<LanguageBase> GetParentLanguageAsync()
Returns
GetRegionalVariantsAsync()
Declaration
public Task<IList<LanguageBase>> GetRegionalVariantsAsync()
Returns
IsNullOrInvalid(LanguageBase)
Declaration
public static bool IsNullOrInvalid(LanguageBase language)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides