Class Locale
Representation of a locale.
- ICanBoogie\CLDR\AbstractSectionCollection implements ArrayAccess uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\CollectionTrait, ICanBoogie\CLDR\RepositoryPropertyTrait
- ICanBoogie\CLDR\Locale uses ICanBoogie\CLDR\CodePropertyTrait
Methods summary
public
|
#
__construct(
Initializes the $repository and $code properties. |
protected
string
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
mixed
|
|
public
string
|
#
format_number( number $number, string|null $pattern = null, array $symbols = [] )
Formats a number using $number_formatter. |
public
string
|
#
format_list( array $list, array|string $list_patterns_or_type = LocalizedListFormatter::TYPE_STANDARD )
Formats a variable-length lists of things using $list_formatter. |
public
string
|
#
context_transform( string $str, string $usage, string $type )
Transforms a string depending on the context and the locale rules. |
Methods inherited from ICanBoogie\CLDR\AbstractSectionCollection
Methods inherited from ArrayAccess
offsetSet()
,
offsetUnset()
Methods used from ICanBoogie\CLDR\CodePropertyTrait
Methods used from ICanBoogie\CLDR\CollectionTrait
Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait
Magic properties
public read-only
|
$repository
The repository provided during construct. |
public read-only
string
|
$code
The ISO code of the locale. |
public read-only
string
|
$language
The language code. |
public read-only
|
$calendars
The calendar collection of the locale. |
public read-only
|
$calendar
The preferred calendar for this locale. |
public read-only
|
$numbers
|
public read-only
|
$number_formatter
|
public read-only
|
$list_formatter
|
public read-only
|
$context_transforms
|
public read-only
|
$units
|