Property | Type | Description | |
---|---|---|---|
$formatResolver | |||
$localizationService | |||
$pluralsReader | |||
$translationProvider | Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface |
Method | Description | |
---|---|---|
injectFormatResolver ( |
||
injectLocalizationService ( |
||
injectPluralsReader ( |
||
injectTranslationProvider ( Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface $translationProvider ) : void | ||
translateById ( string $labelId, array $arguments = [], mixed $quantity = null, |
Returns translated string found under the $labelId. | |
translateByOriginalLabel ( string $originalLabel, array $arguments = [], mixed $quantity = null, |
Translates the message given as $originalLabel. |
Method | Description | |
---|---|---|
getPluralForm ( mixed $quantity, |
Get the plural form to be used. |
protected getPluralForm ( mixed $quantity, |
||
$quantity | mixed | |
$locale | ||
return | string |
public injectFormatResolver ( |
||
$formatResolver | ||
return | void |
public injectLocalizationService ( |
||
$localizationService | ||
return | void |
public injectPluralsReader ( |
||
$pluralsReader | ||
return | void |
public injectTranslationProvider ( Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface $translationProvider ) : void | ||
$translationProvider | Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface | |
return | void |
public translateById ( string $labelId, array $arguments = [], mixed $quantity = null, |
||
$labelId | string | Key to use for finding translation |
$arguments | array | An array of values to replace placeholders with |
$quantity | mixed | A number to find plural form for (float or int), NULL to not use plural forms |
$locale | Locale to use (NULL for default one) | |
$sourceName | string | Name of file with translations, base path is $packageKey/Resources/Private/Locale/Translations/ |
$packageKey | string | Key of the package containing the source file |
return | string | Translated message or NULL on failure |
public translateByOriginalLabel ( string $originalLabel, array $arguments = [], mixed $quantity = null, |
||
$originalLabel | string | Untranslated message |
$arguments | array | An array of values to replace placeholders with |
$quantity | mixed | A number to find plural form for (float or int), NULL to not use plural forms |
$locale | Locale to use (NULL for default one) | |
$sourceName | string | Name of file with translations, base path is $packageKey/Resources/Private/Locale/Translations/ |
$packageKey | string | Key of the package containing the source file |
return | string | Translated $originalLabel or $originalLabel itself on failure |
protected FormatResolver,Neos\Flow\I18n $formatResolver | ||
return |
protected Service,Neos\Flow\I18n $localizationService | ||
return |
protected PluralsReader,Neos\Flow\I18n\Cldr\Reader $pluralsReader | ||
return |