|
Previous Page |
Solar_Locale |
Next Page |
_trans()
protected
string
_trans (
string $class,
string $key,
mixed $num default 1,
array $replace default NULL
)
Returns an existing class/key/num string from the translation array.
Parameters
- (string)
$class: The translation class. - (string)
$key: The translation key. - (mixed)
$num: Helps determine if we need a singular or plural translation. - (array)
$replace: An array of replacement values for the string.
Returns
- (string) The translation string if it exists, or null if it does not.
Description
Returns an existing class/key/num string from the translation array.