프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$formatResolver | |||
$localizationService | |||
$pluralsReader | |||
$translationProvider | Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
getPluralForm ( mixed $quantity, |
Get the plural form to be used. |
protected getPluralForm ( mixed $quantity, |
||
$quantity | mixed | |
$locale | ||
리턴 | string |
public injectFormatResolver ( |
||
$formatResolver | ||
리턴 | void |
public injectLocalizationService ( |
||
$localizationService | ||
리턴 | void |
public injectPluralsReader ( |
||
$pluralsReader | ||
리턴 | void |
public injectTranslationProvider ( Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface $translationProvider ) : void | ||
$translationProvider | Neos\Flow\I18n\TranslationProvider\TranslationProviderInterface | |
리턴 | 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 |
리턴 | 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 |
리턴 | string | Translated $originalLabel or $originalLabel itself on failure |
protected FormatResolver,Neos\Flow\I18n $formatResolver | ||
리턴 |
protected PluralsReader,Neos\Flow\I18n\Cldr\Reader $pluralsReader | ||
리턴 |