Locale deprecated::getIntlIcuVersion()

static string|null getIntlIcuVersion() Returns the ICU version as defined by the intl extension. Return Value string|null The ICU version

Locale deprecated::getIntlIcuDataVersion()

static string|null getIntlIcuDataVersion() Returns the ICU Data version as defined by the intl extension. Return Value string|null The ICU Data version

Locale deprecated::getIcuDataVersion()

static string getIcuDataVersion() Returns the ICU data version that ships with Symfony. If the environment variable USEINTLICUDATAVERSION is defined, it will try use the ICU data version as defined by the intl extension, if available. Return Value string The ICU data version that ships with Symfony

Locale deprecated::getIcuDataDirectory()

static string getIcuDataDirectory() Returns the directory path of the ICU data that ships with Symfony. Return Value string The path to the ICU data directory

Locale deprecated::getDisplayLocales()

static array getDisplayLocales(string $locale) Returns the locale names for a locale. Parameters string $locale The locale to use for the locale names Return Value array The locale names with their codes as keys Exceptions RuntimeException When the resource bundles cannot be loaded

Locale deprecated::getDisplayLanguages()

static array getDisplayLanguages(string $locale) Returns the language names for a locale. Parameters string $locale The locale to use for the language names Return Value array The language names with their codes as keys Exceptions RuntimeException When the resource bundles cannot be loaded

Locale deprecated::getDisplayCountries()

static array getDisplayCountries(string $locale) Returns the country names for a locale. Parameters string $locale The locale to use for the country names Return Value array The country names with their codes as keys Exceptions RuntimeException When the resource bundles cannot be loaded

Locale deprecated::getCountries()

static array getCountries() Returns all available country codes. Return Value array The country codes Exceptions RuntimeException When the resource bundles cannot be loaded

Locale deprecated

class Locale extends Locale deprecated since version 2.3, to be removed in 3.0. Use {@link \Locale} and {@link \Symfony\Component\Intl\Intl} instead. Helper class for dealing with locale strings. Methods static array getDisplayCountries(string $locale) Returns the country names for a locale. static array getCountries() Returns all available country codes. static array getDisplayLanguages(string $locale) Returns the language names for a locale. static array getLanguages

Locale

class Locale extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_LOCALE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods static