i18n\MessageSource translateMessage()

translateMessage() protected method

Translates the specified message.

If the message is not found, a missingTranslation event will be triggered. If there is an event handler, it may provide a fallback translation. If no fallback translation is provided this method will return false.

protected string|boolean translateMessage ( $category, $message, $language )
$category string

The category that the message belongs to.

$message string

The message to be translated.

$language string

The target language.

return string|boolean

The translated message or false if translation wasn't found.

doc_Yii
2016-10-30 17:06:16
Comments
Leave a Comment

Please login to continue.