Function t
Translates a string to the current language or to a given language.
The native string language is supposed to be english (en).
The function is patchable by overriding the Brickrouge\Patchable::$callback_translate property and is patched to use the ICanBoogie translation features if the framework is available (see
Brickrouge.php).
Parameters summary
string
|
$str |
The native string to translate. |
array
|
$args = array() |
An array of replacements to make after the translation. The replacement is
handled by the Brickrouge\format() function.
|
array
|
$options = array() |
An array of additional options, with the following elements: - 'default': The default string to use if the translation failed. - 'scope': The scope of the translation. |
Return value summary
mixed
|