Свойство | Тип | Описание | |
---|---|---|---|
$localeCollection | A collection of Locale objects representing currently installed locales, in a hierarchical manner. | ||
$localizationService |
Метод | Описание | |
---|---|---|
detectLocaleFromHttpHeader ( string $acceptLanguageHeader ) : |
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. | |
detectLocaleFromLocaleTag ( string $localeIdentifier ) : |
Returns best-matching Locale object based on the locale identifier provided as parameter. System default locale will be returned if no successful matches were done. | |
detectLocaleFromTemplateLocale ( |
Returns best-matching Locale object based on the template Locale object provided as parameter. System default locale will be returned if no successful matches were done. | |
injectLocaleCollection ( |
||
injectLocalizationService ( |
public detectLocaleFromHttpHeader ( string $acceptLanguageHeader ) : |
||
$acceptLanguageHeader | string | The Accept-Language HTTP header |
Результат | Best-matching existing Locale instance |
public detectLocaleFromLocaleTag ( string $localeIdentifier ) : |
||
$localeIdentifier | string | The locale identifier as used in Locale class |
Результат | Best-matching existing Locale instance |
public detectLocaleFromTemplateLocale ( |
||
$locale | The template Locale object | |
Результат | Best-matching existing Locale instance |
public injectLocaleCollection ( |
||
$localeCollection | ||
Результат | void |
public injectLocalizationService ( |
||
$localizationService | ||
Результат | void |
protected LocaleCollection,Neos\Flow\I18n $localeCollection | ||
Результат |