i18n\MessageFormatter format()

format() public method

Formats a message via ICU message format

It uses the PHP intl extension's MessageFormatter and works around some issues. If PHP intl is not installed a fallback will be used that supports a subset of the ICU message format.

public string|boolean format ( $pattern, $params, $language )
$pattern string

The pattern string to insert parameters into.

$params array

The array of name value pairs to insert into the format string.

$language string

The locale to use for formatting locale-dependent parts

return string|boolean

The formatted pattern string or FALSE if an error occurred

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

Please login to continue.