mediatekformation

LocaleBundleInterface extends ResourceBundleInterface

Gives access to locale-related ICU data.

Tags
author

Bernhard Schussek bschussek@gmail.com

deprecated

since Symfony 4.3, to be removed in 5.0.

Table of Contents

getLocaleName()  : string|null
Returns the name of a locale.
getLocaleNames()  : array<string|int, string>
Returns the names of all known locales.
getLocales()  : array<string|int, string>
Returns the list of locales that this bundle supports.

Methods

getLocaleName()

Returns the name of a locale.

public getLocaleName(string $locale[, string $displayLocale = null ]) : string|null
Parameters
$locale : string

The locale to return the name of (e.g. "de_AT")

$displayLocale : string = null

Optional. The locale to return the name in Defaults to .

Return values
string|null

The name of the locale or NULL if not found

getLocaleNames()

Returns the names of all known locales.

public getLocaleNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
$displayLocale : string = null

Optional. The locale to return the names in Defaults to .

Return values
array<string|int, string>

A list of locale names indexed by locale codes

getLocales()

Returns the list of locales that this bundle supports.

public getLocales() : array<string|int, string>
Return values
array<string|int, string>

A list of locale codes

Search results