Locale (Component\Intl)
Symfony\Component\Intl\Locale
class Locale extends Locale
Provides access to locale-related data.
Methods
static | setDefaultFallback(string $locale) Sets the default fallback locale. | |
static string | getDefaultFallback() Returns the default fallback locale. | |
static string|null | getFallback(string $locale) Returns the fallback locale for a given locale. |
Details
static public setDefaultFallback(string $locale)
Sets the default fallback locale.
The default fallback locale is used as fallback for locales that have no fallback otherwise.
static public string getDefaultFallback()
Returns the default fallback locale.
static public string|null getFallback(string $locale)
Returns the fallback locale for a given locale.
For example, the fallback of "fr_FR" is "fr". The fallback of "fr" is the default fallback locale configured with {@link setDefaultFallback()}. The default fallback locale has no fallback.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Intl/Locale.html