XliffTranslationProvider
class XliffTranslationProvider implements TranslationProviderInterface (View source)
The concrete implementation of TranslationProviderInterface which uses XLIFF file format to store labels.
Properties
protected XliffFileProvider | $fileProvider | ||
protected PluralsReader | $pluralsReader |
Methods
void
void
mixed
getTranslationByOriginalLabel(string $originalLabel, Locale $locale, string $pluralForm = null, string $sourceName = 'Main', string $packageKey = 'Neos.Flow')
Returns translated label of $originalLabel from a file defined by $sourceName.
mixed
getTranslationById(string $labelId, Locale $locale, string $pluralForm = null, string $sourceName = 'Main', string $packageKey = 'Neos.Flow')
Returns label for a key ($labelId) from a file defined by $sourceName.
Details
void
injectFileProvider(XliffFileProvider $fileProvider)
No description
void
injectPluralsReader(PluralsReader $pluralsReader)
No description
mixed
getTranslationByOriginalLabel(string $originalLabel, Locale $locale, string $pluralForm = null, string $sourceName = 'Main', string $packageKey = 'Neos.Flow')
Returns translated label of $originalLabel from a file defined by $sourceName.
Chooses particular form of label if available and defined in $pluralForm.
mixed
getTranslationById(string $labelId, Locale $locale, string $pluralForm = null, string $sourceName = 'Main', string $packageKey = 'Neos.Flow')
Returns label for a key ($labelId) from a file defined by $sourceName.
Chooses particular form of label if available and defined in $pluralForm.