public render ( string $id = null, string $value = null, array $arguments = [], string $source = 'Main', string $package = null, mixed $quantity = null, string $locale = null ) : string |
$id |
string |
Id to use for finding translation (trans-unit id in XLIFF) |
$value |
string |
If $key is not specified or could not be resolved, this value is used. If this argument is not set, child nodes will be used to render the default |
$arguments |
array |
Numerically indexed array of values to be inserted into placeholders |
$source |
string |
Name of file with translations (use / as a directory separator) |
$package |
string |
Target package key. If not set, the current package key will be used |
$quantity |
mixed |
A number to find plural form for (float or int), NULL to not use plural forms |
$locale |
string |
An identifier of locale to use (NULL for use the default locale) |
Результат |
string |
Translated label or source label / ID key |