protected function format($message, array $params) {
		if($fm = $this->formatParameters)
			$fm($params);

		foreach($params as $k=>$v) {
			if(is_string($v) || is_numeric($v))
				$message = str_replace(':'.$k, $v, $message);
		}
		return ucfirst($message);
	}
protected function format($message, array $params) {
		if($fm = $this->formatParameters)
			$fm($params);

		foreach($params as $k=>$v) {
			if(is_string($v) || is_numeric($v))
				$message = str_replace(':'.$k, $v, $message);
		}
		return ucfirst($message);
	}
protected function format ( $ message , array $ params ) { if ( $ fm = $ this -> formatParameters ) $ fm ( $ params ) ; foreach ( $ params as $ k => $ v ) { if ( is_string ( $ v ) || is_numeric ( $ v ) ) $ message = str_replace ( ':' . $ k , $ v , $ message ) ; } return ucfirst ( $ message ) ; }
Format an error message.
@param  string $message
@param  array  $params
@return string
Format an error message .