XliffLoader

final readonly class \TYPO3\CMS\Core\Localization\Loader\XliffLoader

Implements
LoaderInterface

TYPO3-specific XLIFF file loader that implements Symfony's LoaderInterface while maintaining TYPO3's specific features like approval states and plurals.

This loader only converts ONE SINGLE FILE. It is not responsible for detecting the file location of translation! This is done - currently - by the LocalizationFactory and should be moved to a dedicated class.

This loader expects that the source is always english, and the translation is something else.

Table of Contents

Interfaces

LoaderInterface

Methods

load()  : MessageCatalogue

Methods

load()

public load(mixed $resource, string $locale[, string $domain = 'messages' ]) : MessageCatalogue

Parameters

$resource : mixed
$locale : string
$domain : string = 'messages'

Return values

MessageCatalogue
On this page