class XliffFileProvider (View source)

A provider service for XLIFF file objects within the application

Properties

protected PackageManager $packageManager
protected Service $localizationService
protected XliffReader $xliffReader
protected string $globalTranslationPath
protected VariableFrontend $cache
protected string $xliffBasePath

The path relative to a package where translation files reside.

protected array $files

Methods

void
injectCache(VariableFrontend $cache)

Injects the Flow_I18n_XmlModelCache cache

void
initializeObject()

When it's called, XML file is parsed (using parser set in $xmlParser) or cache is loaded, if available.

array
getMergedFileData(string $fileId, Locale $locale)

No description

void
readDirectoryRecursively(string $translationPath, array $parsedData, string $fileId, string $defaultPackageName = 'Neos.Flow')

No description

getFile(string $fileId, Locale $locale)

No description

getParser(string $documentVersion)

No description

Details

void injectCache(VariableFrontend $cache)

Injects the Flow_I18n_XmlModelCache cache

Parameters

VariableFrontend $cache

Return Value

void

void initializeObject()

When it's called, XML file is parsed (using parser set in $xmlParser) or cache is loaded, if available.

Return Value

void

array getMergedFileData(string $fileId, Locale $locale)

No description

Add XLIFF 2.0 support

Parameters

string $fileId
Locale $locale

Return Value

array

protected void readDirectoryRecursively(string $translationPath, array $parsedData, string $fileId, string $defaultPackageName = 'Neos.Flow')

No description

Parameters

string $translationPath
array $parsedData
string $fileId
string $defaultPackageName

Return Value

void

FileAdapter getFile(string $fileId, Locale $locale)

No description

Parameters

string $fileId
Locale $locale

Return Value

FileAdapter

null|XliffParser getParser(string $documentVersion)

No description

Parameters

string $documentVersion

Return Value

null|XliffParser