public static t ( string $category, string $message, array $params = [], string $language = null ) : string | ||
$category | string | the message category. |
$message | string | the message to be translated. |
$params | array | the parameters that will be used to replace the corresponding placeholders in the message. |
$language | string | the language code (e.g. `en-US`, `en`). If this is null, the current [[\yii\base\Application::language|application language]] will be used. |
return | string | the translated message. |