Methods |
public
|
__construct(string $id)
|
#
|
public
static
|
all(): array
Get the list of the known languages.
Get the list of the known languages.
|
#
|
public
static
|
regions(): array
Get the list of the known regions.
Get the list of the known regions.
|
#
|
public
|
getNames(): array
Get both isoName and nativeName as an array.
Get both isoName and nativeName as an array.
|
#
|
public
|
getId(): string
Returns the original locale ID.
Returns the original locale ID.
|
#
|
public
|
getCode(): string
Returns the code of the locale "en"/"fr".
Returns the code of the locale "en"/"fr".
|
#
|
public
|
getVariant(): string|null
Returns the variant code such as cyrl/latn.
Returns the variant code such as cyrl/latn.
|
#
|
public
|
getVariantName(): string|null
Returns the variant such as Cyrillic/Latin.
Returns the variant such as Cyrillic/Latin.
|
#
|
public
|
getRegion(): string|null
Returns the region part of the locale.
Returns the region part of the locale.
|
#
|
public
|
getRegionName(): string|null
Returns the region name for the current language.
Returns the region name for the current language.
|
#
|
public
|
getFullIsoName(): string
Returns the long ISO language name.
Returns the long ISO language name.
|
#
|
public
|
setIsoName(string $isoName): self
Set the ISO language name.
Set the ISO language name.
|
#
|
public
|
getFullNativeName(): string
Return the full name of the language in this language.
Return the full name of the language in this language.
|
#
|
public
|
setNativeName(string $nativeName): self
Set the name of the language in this language.
Set the name of the language in this language.
|
#
|
public
|
getIsoName(): string
Returns the short ISO language name.
Returns the short ISO language name.
|
#
|
public
|
getNativeName(): string
Get the short name of the language in this language.
Get the short name of the language in this language.
|
#
|
public
|
getIsoDescription(): string
Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable.
Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable.
|
#
|
public
|
getNativeDescription(): string
Get a string with short native name, region in parentheses if applicable, variant in parentheses if applicable.
Get a string with short native name, region in parentheses if applicable, variant in parentheses if applicable.
|
#
|
public
|
getFullIsoDescription(): string
Get a string with long ISO name, region in parentheses if applicable, variant in parentheses if applicable.
Get a string with long ISO name, region in parentheses if applicable, variant in parentheses if applicable.
|
#
|
public
|
getFullNativeDescription(): string
Get a string with long native name, region in parentheses if applicable, variant in parentheses if applicable.
Get a string with long native name, region in parentheses if applicable, variant in parentheses if applicable.
|
#
|
public
|
__toString(): string
Returns the original locale ID.
Returns the original locale ID.
|
#
|
public
|
jsonSerialize(): string
Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable.
Get a string with short ISO name, region in parentheses if applicable, variant in parentheses if applicable.
Implements
|
#
|