Search Results for

    Show / Hide Table of Contents

    Class LanguageResourceBundle

    A language resource bundle holds custom language resources for a certain language (abbreviation, ordinal followers, variables and segmentation rules).

    Inheritance
    object
    LanguageResourceBundle
    Implements
    INotifyPropertyChanged
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public class LanguageResourceBundle : INotifyPropertyChanged

    Constructors

    LanguageResourceBundle()

    Declaration
    public LanguageResourceBundle()

    LanguageResourceBundle(CultureCode)

    Creates a new, empty language resource bundle for the specified language.

    Declaration
    public LanguageResourceBundle(CultureCode language)
    Parameters
    Type Name Description
    CultureCode language

    The language for which the language resource bundle will hold resources.

    LanguageResourceBundle(string)

    Creates a new, empty language resource bundle for the specified language.

    Declaration
    public LanguageResourceBundle(string languageCode)
    Parameters
    Type Name Description
    string languageCode

    The language code for which the language resource bundle will hold resources.

    Properties

    Abbreviations

    Gets or sets the list abbreviations for this bundle's language.

    Declaration
    public Wordlist Abbreviations { get; set; }
    Property Value
    Type Description
    Wordlist
    Remarks

    Setting this property to null will force the default abbreviations for the language to be used during TM processing. In order to change the list of abbreviations, you can either manipulate the list returned, or assign an entirely new list.

    CurrencyFormats

    Gets or sets the list currency formats for this bundle's language.

    Declaration
    public List<CurrencyFormat> CurrencyFormats { get; set; }
    Property Value
    Type Description
    List<CurrencyFormat>
    Remarks

    Setting this property to null will force the default currency formts to be used. In order to change the list of currency formats, you can either manipulate the list returned, or assign an entirely new list.

    Language

    Gets the language for which the language resource bundle will hold resources.

    Declaration
    public CultureCode Language { get; }
    Property Value
    Type Description
    CultureCode

    LanguageCode

    Gets the language code of the language for which the language resource bundle will hold resources.

    Declaration
    public string LanguageCode { get; }
    Property Value
    Type Description
    string

    LongDateFormats

    Gets or sets the long date patterns for this bundle's language.

    Declaration
    public List<string> LongDateFormats { get; set; }
    Property Value
    Type Description
    List<string>
    Remarks

    Setting this property to null will force the default long date patterns for the language to be used during TM processing.

    LongTimeFormats

    Gets or sets the long time patterns for this bundle's language.

    Declaration
    public List<string> LongTimeFormats { get; set; }
    Property Value
    Type Description
    List<string>
    Remarks

    Setting this property to null will force the default long time patterns for the language to be used during TM processing.

    MeasurementUnits

    Gets or sets the measurement units for this bundle's language.

    Declaration
    public Dictionary<string, CustomUnitDefinition> MeasurementUnits { get; set; }
    Property Value
    Type Description
    Dictionary<string, CustomUnitDefinition>
    Remarks

    Setting this property to null will force the default measurement units for the language to be used during TM processing.

    NumbersSeparators

    Declaration
    public List<SeparatorCombination> NumbersSeparators { get; set; }
    Property Value
    Type Description
    List<SeparatorCombination>

    OrdinalFollowers

    Gets or sets the list ordinal followers for this bundle's language.

    Declaration
    public Wordlist OrdinalFollowers { get; set; }
    Property Value
    Type Description
    Wordlist
    Remarks

    Setting this property to null will force the default ordinal followers for the language to be used during TM processing. In order to change the list of ordinal followers, you can either manipulate the list returned, or assign an entirely new list.

    SegmentationRules

    Gets or sets the segmentation rules for this bundle's language.

    Declaration
    public SegmentationRules SegmentationRules { get; set; }
    Property Value
    Type Description
    SegmentationRules
    Remarks

    Setting this property to null will force the default segmentation rules for the language to be used during TM processing. In order to change the segmentation rules, you can either manipulate the rules returned by this property, or assign an entirely new SegmentationRules object.

    ShortDateFormats

    Gets or sets the short date patterns for this bundle's language.

    Declaration
    public List<string> ShortDateFormats { get; set; }
    Property Value
    Type Description
    List<string>
    Remarks

    Setting this property to null will force the default short date patterns for the language to be used during TM processing.

    ShortTimeFormats

    Gets or sets the short time patterns for this bundle's language.

    Declaration
    public List<string> ShortTimeFormats { get; set; }
    Property Value
    Type Description
    List<string>
    Remarks

    Setting this property to null will force the default short time patterns for the language to be used during TM processing.

    Variables

    Gets or sets the list variables for this bundle's language.

    Declaration
    public Wordlist Variables { get; set; }
    Property Value
    Type Description
    Wordlist
    Remarks

    Setting this property to null will force the default variables for the language to be used during TM processing. In order to change the list of variables, you can either manipulate the list returned, or assign an entirely new list.

    Methods

    Clone()

    Creates a deep copy of this language resource bundle.

    Declaration
    public LanguageResourceBundle Clone()
    Returns
    Type Description
    LanguageResourceBundle

    IsCustomized()

    Returns true if any language resource has be customized.

    Declaration
    public bool IsCustomized()
    Returns
    Type Description
    bool

    ResetToDefaults()

    Resets all language resources to default (null).

    Declaration
    public void ResetToDefaults()

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    INotifyPropertyChanged
    In this article
    • Constructors
      • LanguageResourceBundle()
      • LanguageResourceBundle(CultureCode)
      • LanguageResourceBundle(string)
    • Properties
      • Abbreviations
      • CurrencyFormats
      • Language
      • LanguageCode
      • LongDateFormats
      • LongTimeFormats
      • MeasurementUnits
      • NumbersSeparators
      • OrdinalFollowers
      • SegmentationRules
      • ShortDateFormats
      • ShortTimeFormats
      • Variables
    • Methods
      • Clone()
      • IsCustomized()
      • ResetToDefaults()
    • Events
      • PropertyChanged
    • Implements
    Back to top Generated by DocFX