mediatekformation

RegionBundleInterface extends ResourceBundleInterface

Gives access to region-related ICU data.

Tags
author

Bernhard Schussek bschussek@gmail.com

deprecated

since Symfony 4.3, to be removed in 5.0.

Table of Contents

getCountryName()  : string|null
Returns the name of a country.
getCountryNames()  : array<string|int, string>
Returns the names of all known countries.
getLocales()  : array<string|int, string>
Returns the list of locales that this bundle supports.

Methods

getCountryName()

Returns the name of a country.

public getCountryName(string $country[, string $displayLocale = null ]) : string|null
Parameters
$country : string

A country code (e.g. "US")

$displayLocale : string = null

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

Return values
string|null

The name of the country or NULL if not found

getCountryNames()

Returns the names of all known countries.

public getCountryNames([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 country names indexed by country 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