Property | Type | Description | |
---|---|---|---|
$localizationService | |||
$models | array |
This is an associative array with pairs as follow: ['filename'] => $model, | |
$pluralsReader | |||
$xliffBasePath | string | An absolute path to the directory where translation files reside. |
Method | Description | |
---|---|---|
getTranslationById ( string $labelId, |
Returns label for a key ($labelId) from a file defined by $sourceName. | |
getTranslationByOriginalLabel ( string $originalLabel, |
Returns translated label of $originalLabel from a file defined by $sourceName. | |
injectLocalizationService ( |
||
injectPluralsReader ( |
Method | Description | |
---|---|---|
getModel ( string $packageKey, string $sourceName, |
Returns a XliffModel instance representing desired XLIFF file. |
protected getModel ( string $packageKey, string $sourceName, |
||
$packageKey | string | Key of the package containing the source file |
$sourceName | string | Relative path to existing CLDR file |
$locale | Locale object | |
return | New or existing instance |
public getTranslationById ( string $labelId, |
||
$labelId | string | Key used to find translated label |
$locale | Locale to use | |
$pluralForm | string | One of RULE constants of PluralsReader |
$sourceName | string | A relative path to the filename with translations (labels' catalog) |
$packageKey | string | Key of the package containing the source file |
return | mixed | Translated label or FALSE on failure |
public getTranslationByOriginalLabel ( string $originalLabel, |
||
$originalLabel | string | Label used as a key in order to find translation |
$locale | Locale to use | |
$pluralForm | string | One of RULE constants of PluralsReader |
$sourceName | string | A relative path to the filename with translations (labels' catalog) |
$packageKey | string | Key of the package containing the source file |
return | mixed | Translated label or FALSE on failure |
public injectLocalizationService ( |
||
$localizationService | ||
return | void |
public injectPluralsReader ( |
||
$pluralsReader | ||
return | void |
protected Service,Neos\Flow\I18n $localizationService | ||
return |
protected array |
||
return | array |
protected PluralsReader,Neos\Flow\I18n\Cldr\Reader $pluralsReader | ||
return |
protected string $xliffBasePath | ||
return | string |