class StubLocale extends Locale
deprecated
since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\Locale\Locale} and {@link \Symfony\Component\Intl\Intl} instead.
Alias of {@link \Symfony\Component\Intl\Locale\Locale}.
Constants
DEFAULT_LOCALE | |
ACTUAL_LOCALE | |
VALID_LOCALE | |
LANG_TAG | |
EXTLANG_TAG | |
SCRIPT_TAG | |
REGION_TAG | |
VARIANT_TAG | |
GRANDFATHERED_LANG_TAG | |
PRIVATE_TAG |
Methods
static string | acceptFromHttp(string $header) Not supported. Returns the best available locale based on HTTP "Accept-Language" header according to RFC 2616. | from Locale |
static string | composeLocale(array $subtags) Not supported. Returns a correctly ordered and delimited locale code. | from Locale |
static string | filterMatches(string $langtag, string $locale, bool $canonicalize = false) Not supported. Checks if a language tag filter matches with locale. | from Locale |
static array | getAllVariants(string $locale) Not supported. Returns the variants for the input locale. | from Locale |
static string | getDefault() Returns the default locale. | from Locale |
static string | getDisplayLanguage(string $locale, string $inLocale = null) Not supported. Returns the localized display name for the locale language. | from Locale |
static string | getDisplayName(string $locale, string $inLocale = null) Not supported. Returns the localized display name for the locale. | from Locale |
static string | getDisplayRegion(string $locale, string $inLocale = null) Not supported. Returns the localized display name for the locale region. | from Locale |
static string | getDisplayScript(string $locale, string $inLocale = null) Not supported. Returns the localized display name for the locale script. | from Locale |
static string | getDisplayVariant(string $locale, string $inLocale = null) Not supported. Returns the localized display name for the locale variant. | from Locale |
static array | getKeywords(string $locale) Not supported. Returns the keywords for the locale. | from Locale |
static string|null | getPrimaryLanguage(string $locale) Not supported. Returns the primary language for the locale. | from Locale |
static string|null | getRegion(string $locale) Not supported. Returns the region for the locale. | from Locale |
static string|null | getScript(string $locale) Not supported. Returns the script for the locale. | from Locale |
static | lookup(array $langtag, string $locale, bool $canonicalize = false, string $default = null) Not supported. Returns the closest language tag for the locale. | from Locale |
static array | parseLocale(string $locale) Not supported. Returns an associative array of locale identifier subtags. | from Locale |
static bool | setDefault(string $locale) Not supported. Sets the default runtime locale. | from Locale |
static array | getCurrenciesData(string $locale) Returns the currencies data. | |
static array | getDisplayCurrencies(string $locale) Returns the currencies names for a locale. | |
static array | getCurrencies() Returns all available currencies codes. | |
static | getDataDirectory() |
Details
static string acceptFromHttp(string $header)
Not supported. Returns the best available locale based on HTTP "Accept-Language" header according to RFC 2616.
static string composeLocale(array $subtags)
Not supported. Returns a correctly ordered and delimited locale code.
static string filterMatches(string $langtag, string $locale, bool $canonicalize = false)
Not supported. Checks if a language tag filter matches with locale.
static array getAllVariants(string $locale)
Not supported. Returns the variants for the input locale.
static string getDefault()
Returns the default locale.
static string getDisplayLanguage(string $locale, string $inLocale = null)
Not supported. Returns the localized display name for the locale language.
static string getDisplayName(string $locale, string $inLocale = null)
Not supported. Returns the localized display name for the locale.
static string getDisplayRegion(string $locale, string $inLocale = null)
Not supported. Returns the localized display name for the locale region.
static string getDisplayScript(string $locale, string $inLocale = null)
Not supported. Returns the localized display name for the locale script.
static string getDisplayVariant(string $locale, string $inLocale = null)
Not supported. Returns the localized display name for the locale variant.
static array getKeywords(string $locale)
Not supported. Returns the keywords for the locale.
static string|null getPrimaryLanguage(string $locale)
Not supported. Returns the primary language for the locale.
static string|null getRegion(string $locale)
Not supported. Returns the region for the locale.
static string|null getScript(string $locale)
Not supported. Returns the script for the locale.
static lookup(array $langtag, string $locale, bool $canonicalize = false, string $default = null)
Not supported. Returns the closest language tag for the locale.
static array parseLocale(string $locale)
Not supported. Returns an associative array of locale identifier subtags.
static bool setDefault(string $locale)
Not supported. Sets the default runtime locale.
static array getCurrenciesData(string $locale)
Returns the currencies data.
static array getDisplayCurrencies(string $locale)
Returns the currencies names for a locale.
static array getCurrencies()
Returns all available currencies codes.
Please login to continue.