Class LanguageResourceBundle
A language resource bundle holds custom language resources for a certain language (abbreviation, ordinal followers, variables and segmentation rules).
Inheritance
Implements
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class LanguageResourceBundle
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 |
---|---|---|
Sdl.Core.Globalization.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 |
---|---|---|
System.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 |
---|---|
System.Collections.Generic.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 |
---|---|
Sdl.Core.Globalization.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 |
---|---|
System.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 |
---|---|
System.Collections.Generic.List<System.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 |
---|---|
System.Collections.Generic.List<System.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 |
---|---|
System.Collections.Generic.Dictionary<System.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 |
---|---|
System.Collections.Generic.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 |
---|---|
System.Collections.Generic.List<System.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 |
---|---|
System.Collections.Generic.List<System.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 |
---|---|
System.Boolean |
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 |
---|---|
System.ComponentModel.PropertyChangedEventHandler |