PHP 클래스 Neos\Neos\Service\XliffService

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
setArrayDataValue ( array &$arrayPointer, string $key, string $value ) : void Helper method to create the needed json array from a dotted xliff id

메소드 상세

getCacheVersion() 공개 메소드

public getCacheVersion ( ) : integer
리턴 integer The current cache version identifier

getCachedJson() 공개 메소드

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

parseXliffToArray() 공개 메소드

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
리턴 array

setArrayDataValue() 보호된 메소드

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
리턴 void

프로퍼티 상세

$localizationService 보호되어 있는 프로퍼티

protected Service,Neos\Flow\I18n $localizationService
리턴 Neos\Flow\I18n\Service

$packageManager 보호되어 있는 프로퍼티

protected PackageManagerInterface,Neos\Flow\Package $packageManager
리턴 Neos\Flow\Package\PackageManagerInterface

$packagesRegisteredForAutoInclusion 보호되어 있는 프로퍼티

protected array $packagesRegisteredForAutoInclusion
리턴 array

$scrambleTranslatedLabels 보호되어 있는 프로퍼티

protected bool $scrambleTranslatedLabels
리턴 boolean

$xliffBasePath 보호되어 있는 프로퍼티

A relative path for translations inside the package resources.
protected string $xliffBasePath
리턴 string

$xliffParser 보호되어 있는 프로퍼티

protected XliffParser,Neos\Flow\I18n\Xliff $xliffParser
리턴 Neos\Flow\I18n\Xliff\XliffParser

$xliffToJsonTranslationsCache 보호되어 있는 프로퍼티

protected VariableFrontend,Neos\Cache\Frontend $xliffToJsonTranslationsCache
리턴 Neos\Cache\Frontend\VariableFrontend