Returns best-matching Locale object based on the Accept-Language header
provided as parameter. System default locale will be returned if no
successful matches were done.
public detectLocaleFromHttpHeader ( string $acceptLanguageHeader ) : |
||
$acceptLanguageHeader | string | The Accept-Language HTTP header |
return | Best-matching existing Locale instance |