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. |
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 | Name of file with translations, base path is $packageKey/Resources/Private/Locale/Translations/ |
$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 | Name of file with translations, base path is $packageKey/Resources/Private/Locale/Translations/ |
$packageKey | string | Key of the package containing the source file |
Résultat | mixed | Translated label or FALSE on failure |