Class DefaultLanguageResourceProvider
Provides access to the default data for language resources.
Inheritance
System.Object
DefaultLanguageResourceProvider
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.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class DefaultLanguageResourceProvider
Constructors
DefaultLanguageResourceProvider()
Initializes a new instance of the DefaultLanguageResourceProvider class.
Declaration
public DefaultLanguageResourceProvider()
Methods
FillDefaultDateTimeFormats(CultureCode, LanguageResourceBundle)
Declaration
public void FillDefaultDateTimeFormats(CultureCode language, LanguageResourceBundle bundle)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | language | |
LanguageResourceBundle | bundle |
GetDefaultLanguageResources(CultureCode)
Gets default language resources for the specified language.
Declaration
public LanguageResourceBundle GetDefaultLanguageResources(CultureCode language)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | language | The language for which to get the default language resources. |
Returns
Type | Description |
---|---|
LanguageResourceBundle | A LanguageResourceBundle instance, populated with the default language resources. Note that some default language resources might be null. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
GetDefaultNumberSeparators(CultureCode)
Declaration
public List<SeparatorCombination> GetDefaultNumberSeparators(CultureCode language)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | language |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<SeparatorCombination> |
GetDefaultWordlist(LanguageResourceType, CultureCode)
Declaration
public Wordlist GetDefaultWordlist(LanguageResourceType type, CultureCode language)
Parameters
Type | Name | Description |
---|---|---|
LanguageResourceType | type | |
Sdl.Core.Globalization.CultureCode | language |
Returns
Type | Description |
---|---|
Wordlist |