Search Results for

    Show / Hide Table of Contents

    Class LanguageMetadata

    Provides details of language metadata needed for recognizer generation, localization defaults, etc.

    Inheritance
    System.Object
    LanguageMetadata
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.Core
    Assembly: Sdl.LanguagePlatform.Core.dll
    Syntax
    public class LanguageMetadata
    Remarks

    See System.Globalization.CultureInfo.NumberFormat and System.Globalization.CultureInfo.DateTimeFormat for information on some of the properties.

    Constructors

    LanguageMetadata()

    Declaration
    public LanguageMetadata()

    LanguageMetadata(CultureInfo)

    Declaration
    public LanguageMetadata(CultureInfo culture)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo culture

    Properties

    AbbreviatedDayNames

    Declaration
    public string[] AbbreviatedDayNames { get; set; }
    Property Value
    Type Description
    System.String[]

    AbbreviatedMonthGenitiveNames

    Declaration
    public string[] AbbreviatedMonthGenitiveNames { get; set; }
    Property Value
    Type Description
    System.String[]

    AbbreviatedMonthNames

    Declaration
    public string[] AbbreviatedMonthNames { get; set; }
    Property Value
    Type Description
    System.String[]

    AMDesignator

    Declaration
    public string AMDesignator { get; set; }
    Property Value
    Type Description
    System.String

    CurrencyDecimalDigits

    Declaration
    public int CurrencyDecimalDigits { get; set; }
    Property Value
    Type Description
    System.Int32

    CurrencyDecimalSeparator

    Declaration
    public string CurrencyDecimalSeparator { get; set; }
    Property Value
    Type Description
    System.String

    CurrencyGroupSeparator

    Declaration
    public string CurrencyGroupSeparator { get; set; }
    Property Value
    Type Description
    System.String

    CurrencyGroupSizes

    Declaration
    public int[] CurrencyGroupSizes { get; set; }
    Property Value
    Type Description
    System.Int32[]

    CurrencyNegativePattern

    Declaration
    public int CurrencyNegativePattern { get; set; }
    Property Value
    Type Description
    System.Int32

    CurrencyPositivePattern

    Declaration
    public int CurrencyPositivePattern { get; set; }
    Property Value
    Type Description
    System.Int32

    CurrencyPrecedesNumber

    Declaration
    public bool CurrencyPrecedesNumber { get; set; }
    Property Value
    Type Description
    System.Boolean

    CurrencySymbol

    Declaration
    public string CurrencySymbol { get; set; }
    Property Value
    Type Description
    System.String

    DateSeparator

    Declaration
    public string DateSeparator { get; set; }
    Property Value
    Type Description
    System.String

    DateTimeFormat

    Used to provide stable culture information to runtime parsing/formatting functions

    Declaration
    public DateTimeFormatInfo DateTimeFormat { get; }
    Property Value
    Type Description
    System.Globalization.DateTimeFormatInfo

    DateTimePatterns

    Declaration
    public string[] DateTimePatterns { get; set; }
    Property Value
    Type Description
    System.String[]

    DayNames

    Declaration
    public string[] DayNames { get; set; }
    Property Value
    Type Description
    System.String[]

    DigitSubstitution

    Declaration
    public DigitShapes DigitSubstitution { get; set; }
    Property Value
    Type Description
    System.Globalization.DigitShapes

    EraNames

    Declaration
    public string[] EraNames { get; set; }
    Property Value
    Type Description
    System.String[]

    FullDateTimePattern

    Declaration
    public string FullDateTimePattern { get; set; }
    Property Value
    Type Description
    System.String

    LongDatePattern

    Declaration
    public string LongDatePattern { get; set; }
    Property Value
    Type Description
    System.String

    LongTimePattern

    Declaration
    public string LongTimePattern { get; set; }
    Property Value
    Type Description
    System.String

    MonthGenitiveNames

    Declaration
    public string[] MonthGenitiveNames { get; set; }
    Property Value
    Type Description
    System.String[]

    MonthNames

    Declaration
    public string[] MonthNames { get; set; }
    Property Value
    Type Description
    System.String[]

    Name

    The name of the culture for which this object holds metadata, e.g. "en-US"

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    NaNSymbol

    Declaration
    public string NaNSymbol { get; set; }
    Property Value
    Type Description
    System.String

    NativeCalendarName

    Declaration
    public string NativeCalendarName { get; set; }
    Property Value
    Type Description
    System.String

    NativeDigits

    Declaration
    public string[] NativeDigits { get; set; }
    Property Value
    Type Description
    System.String[]

    NegativeInfinitySymbol

    Declaration
    public string NegativeInfinitySymbol { get; set; }
    Property Value
    Type Description
    System.String

    NegativeSign

    Declaration
    public string NegativeSign { get; set; }
    Property Value
    Type Description
    System.String

    NumberDecimalDigits

    Declaration
    public int NumberDecimalDigits { get; set; }
    Property Value
    Type Description
    System.Int32

    NumberDecimalSeparator

    Declaration
    public string NumberDecimalSeparator { get; set; }
    Property Value
    Type Description
    System.String

    NumberFormat

    Used to provide stable culture information to runtime parsing/formatting functions

    Declaration
    public NumberFormatInfo NumberFormat { get; }
    Property Value
    Type Description
    System.Globalization.NumberFormatInfo

    NumberGroupSeparator

    Declaration
    public string NumberGroupSeparator { get; set; }
    Property Value
    Type Description
    System.String

    NumberGroupSizes

    Declaration
    public int[] NumberGroupSizes { get; set; }
    Property Value
    Type Description
    System.Int32[]

    NumberNegativePattern

    Declaration
    public int NumberNegativePattern { get; set; }
    Property Value
    Type Description
    System.Int32

    PercentDecimalDigits

    Declaration
    public int PercentDecimalDigits { get; set; }
    Property Value
    Type Description
    System.Int32

    PercentDecimalSeparator

    Declaration
    public string PercentDecimalSeparator { get; set; }
    Property Value
    Type Description
    System.String

    PercentGroupSeparator

    Declaration
    public string PercentGroupSeparator { get; set; }
    Property Value
    Type Description
    System.String

    PercentGroupSizes

    Declaration
    public int[] PercentGroupSizes { get; set; }
    Property Value
    Type Description
    System.Int32[]

    PercentNegativePattern

    Declaration
    public int PercentNegativePattern { get; set; }
    Property Value
    Type Description
    System.Int32

    PercentPositivePattern

    Declaration
    public int PercentPositivePattern { get; set; }
    Property Value
    Type Description
    System.Int32

    PercentSymbol

    Declaration
    public string PercentSymbol { get; set; }
    Property Value
    Type Description
    System.String

    PerMilleSymbol

    Declaration
    public string PerMilleSymbol { get; set; }
    Property Value
    Type Description
    System.String

    PMDesignator

    Declaration
    public string PMDesignator { get; set; }
    Property Value
    Type Description
    System.String

    PositiveInfinitySymbol

    Declaration
    public string PositiveInfinitySymbol { get; set; }
    Property Value
    Type Description
    System.String

    PositiveSign

    Declaration
    public string PositiveSign { get; set; }
    Property Value
    Type Description
    System.String

    ShortDatePattern

    Declaration
    public string ShortDatePattern { get; set; }
    Property Value
    Type Description
    System.String

    ShortestDayNames

    Declaration
    public string[] ShortestDayNames { get; set; }
    Property Value
    Type Description
    System.String[]

    ShortTimePattern

    Declaration
    public string ShortTimePattern { get; set; }
    Property Value
    Type Description
    System.String

    TimeSeparator

    Declaration
    public string TimeSeparator { get; set; }
    Property Value
    Type Description
    System.String

    Version

    Declaration
    public int Version { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    GetMetadata(String)

    Retrieves the default metadata for the specified language code, if it exists.

    Declaration
    public static LanguageMetadata GetMetadata(string langCode)
    Parameters
    Type Name Description
    System.String langCode
    Returns
    Type Description
    LanguageMetadata

    The metadata object, or null if defaults were not found for the specified language code

    GetMetadataLanguageCodes()

    Declaration
    public static List<string> GetMetadataLanguageCodes()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    GetOrCreateMetadata(String)

    Retrieves the default metadata for the specified language code, or if none found, creates metadata from the corresponding System.Globalization.CultureInfo. Note: this can be used during testing, but in deployment, GetMetadata(String) should be used, with fallback behaviour to use a different language code if that returns null.

    Declaration
    public static LanguageMetadata GetOrCreateMetadata(string langCode)
    Parameters
    Type Name Description
    System.String langCode
    Returns
    Type Description
    LanguageMetadata

    On this page

    Back to top Generated by DocFX