Class Locale
A locale refers to a set of user preferences that tend to be shared across significant swaths of the world. Traditionally, the data associated with it provides support for formatting and parsing of dates, times, numbers, and currencies; for measurement units, for sort-order (collation), plus translated names for time zones, languages, countries, and scripts. The data can also include support for text boundaries (character, word, line, and sentence), text transformations (including transliterations), and other services.
- ICanBoogie\CLDR\Locale implements ArrayAccess
- ICanBoogie\I18n\Locale
Methods summary
public static
Locale.
|
|
public
|
#
__construct(
Initializes the |
public
|
|
public
|
|
public
string
|
|
protected
array
|
|
protected
|
|
protected
|
Methods inherited from ICanBoogie\CLDR\Locale
get_calendars()
,
get_identity()
,
get_repository()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Magic methods summary
Properties summary
protected
string
|
$id |
#
Language identifier. |
protected
string
|
$language |
#
Language of the locale. |
protected
string
|
$territory |
#
Territory code for this locale. |
Properties inherited from ICanBoogie\CLDR\Locale
$identity
,
$repository
,
$sections
Magic properties
public read-only
string
|
$id |
|
#
Locale id |
public read-only
string
|
$language |
|
#
Language of the locale. |
public read-only
string
|
$territory |
|
#
Territory of the locale. |
public read-only
array
|
$calendar |
|
#
The data of the default calendar for the locale. |
public read-only
Conventions
|
$conventions |
|
#
The UNICODE conventions for the locale. |
public read-only
DateFormatter
|
$date_formatter |
|
#
The data formatter for the locale. |
public read-only
|
$number_formatter |
|
#
The number formatter for the locale. |
public read-only
|
$translator |
|
#
The translator for the locale. |