Click or drag to resize

ILocale Interface


Represents a standard ISO locale definition. The concept of locale is a combination of language and region. A more common term to describe a locale is "culture."

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
public interface ILocale

The ILocale type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleEnglishName
Gets the culture name in the format "<languagefull> (<country/regionfull>)" in English, where <languagefull> is the full name of the language and <country/regionfull> is the full name of the country/region.
Public propertyCode exampleISOLanguageName
Gets the ISO 639-2 three-letter code for the locale's language.
Public propertyCode exampleLCID
Gets the identifier of the locale's underlying culture.
Public propertyCode exampleName
Gets the name of the locale. The name is the same as the RegionCode of the locale.
Public propertyCode exampleNativeName
Gets the culture name. This consists of the full name of the language, the full name of the country/region, and the optional script. This name is written in the locale's native language.
Public propertyCode exampleRegionCode
Gets the locale's region code. It is the same as the Name property.
Public propertyCode exampleWindowsLanguageName
Gets the three-letter code for the language as defined in the Windows API.
Top
Methods
  NameDescription
Public methodCode exampleFormatNumber
Converts the value of the number provided to its equivalent string representation using the culture-specific format information.
Public methodCode exampleFormatTimeLong
Converts a time value to its equivalent string representation using culture-specific long-format information.
Public methodCode exampleFormatTimeShort
Converts a time value to its equivalent string representation using culture-specific short format information.
Top
Remarks
Includes utility methods for converting date/time integer values to their string representations.
See Also