class Locale extends Locale
deprecated
Helper class for dealing with locale strings.
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() Returns all available language codes. | |
static array | getDisplayLocales(string $locale) Returns the locale names for a locale. | |
static array | getLocales() Returns all available locale codes. | |
static string|null | getIntlIcuVersion() Returns the ICU version as defined by the intl extension. | |
static string|null | getIntlIcuDataVersion() Returns the ICU Data version as defined by the intl extension. | |
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. | |
static string | getIcuDataDirectory() Returns the directory path of the ICU data that ships with Symfony. |
Returns the country names for a locale.
string | $locale | The locale to use for the country names |
array | The country names with their codes as keys |
RuntimeException | When the resource bundles cannot be loaded |
Returns all available country codes.
array | The country codes |
RuntimeException | When the resource bundles cannot be loaded |
Returns the language names for a locale.
string | $locale | The locale to use for the language names |
array | The language names with their codes as keys |
RuntimeException | When the resource bundles cannot be loaded |
Returns all available language codes.
array | The language codes |
RuntimeException | When the resource bundles cannot be loaded |
Returns the locale names for a locale.
string | $locale | The locale to use for the locale names |
array | The locale names with their codes as keys |
RuntimeException | When the resource bundles cannot be loaded |
Returns all available locale codes.
array | The locale codes |
RuntimeException | When the resource bundles cannot be loaded |
Returns the ICU version as defined by the intl extension.
string|null | The ICU version |
Returns the ICU Data version as defined by the intl extension.
string|null | The ICU Data version |
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.
string | The ICU data version that ships with Symfony |
Returns the directory path of the ICU data that ships with Symfony.
string | The path to the ICU data directory |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Locale/Locale.html