Свойство | 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. |
Méthode | 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 ( |
Méthode | 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 | |
Résultat | 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 |
Résultat | 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 |
Résultat | mixed | Translated label or FALSE on failure |
public injectLocalizationService ( |
||
$localizationService | ||
Résultat | void |
public injectPluralsReader ( |
||
$pluralsReader | ||
Résultat | void |
protected Service,Neos\Flow\I18n $localizationService | ||
Résultat |
protected array |
||
Résultat | array |
protected PluralsReader,Neos\Flow\I18n\Cldr\Reader $pluralsReader | ||
Résultat |
protected string $xliffBasePath | ||
Résultat | string |