PHP Class Neos\Neos\Service\XliffService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$localizationService Neos\Flow\I18n\Service
$packageManager Neos\Flow\Package\PackageManagerInterface
$packagesRegisteredForAutoInclusion array
$scrambleTranslatedLabels boolean
$xliffBasePath string A relative path for translations inside the package resources.
$xliffParser Neos\Flow\I18n\Xliff\XliffParser
$xliffToJsonTranslationsCache Neos\Cache\Frontend\VariableFrontend

Méthodes publiques

Méthode Description
getCacheVersion ( ) : integer
getCachedJson ( Locale $locale ) : Neos\Error\Messages\Result Return the json array for a given locale, sourceCatalog, xliffPath and package.
parseXliffToArray ( string $xliffPathAndFilename, string $packageKey, string $sourceName ) : array Read the xliff file and create the desired json

Méthodes protégées

Méthode Description
setArrayDataValue ( array &$arrayPointer, string $key, string $value ) : void Helper method to create the needed json array from a dotted xliff id

Method Details

getCacheVersion() public méthode

public getCacheVersion ( ) : integer
Résultat integer The current cache version identifier

getCachedJson() public méthode

The json will be cached.
public getCachedJson ( Locale $locale ) : Neos\Error\Messages\Result
$locale Neos\Flow\I18n\Locale The locale
Résultat Neos\Error\Messages\Result

parseXliffToArray() public méthode

Read the xliff file and create the desired json
public parseXliffToArray ( string $xliffPathAndFilename, string $packageKey, string $sourceName ) : array
$xliffPathAndFilename string The file to read
$packageKey string
$sourceName string
Résultat array

setArrayDataValue() protected méthode

Helper method to create the needed json array from a dotted xliff id
protected setArrayDataValue ( array &$arrayPointer, string $key, string $value ) : void
$arrayPointer array
$key string
$value string
Résultat void

Property Details

$localizationService protected_oe property

protected Service,Neos\Flow\I18n $localizationService
Résultat Neos\Flow\I18n\Service

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Résultat Neos\Flow\Package\PackageManagerInterface

$packagesRegisteredForAutoInclusion protected_oe property

protected array $packagesRegisteredForAutoInclusion
Résultat array

$scrambleTranslatedLabels protected_oe property

protected bool $scrambleTranslatedLabels
Résultat boolean

$xliffBasePath protected_oe property

A relative path for translations inside the package resources.
protected string $xliffBasePath
Résultat string

$xliffParser protected_oe property

protected XliffParser,Neos\Flow\I18n\Xliff $xliffParser
Résultat Neos\Flow\I18n\Xliff\XliffParser

$xliffToJsonTranslationsCache protected_oe property

protected VariableFrontend,Neos\Cache\Frontend $xliffToJsonTranslationsCache
Résultat Neos\Cache\Frontend\VariableFrontend