protected function _render($method, $string, $params, array $options = array())
{
$strings = $this->_strings;
if (isset($params['options']['scope'])) {
$options['scope'] = $params['options']['scope'];
unset($params['options']['scope']);
}
if ($this->_context) {
foreach ($params as $key => $value) {
$handler = isset($options['handlers'][$key]) ? $options['handlers'][$key] : $key;
$params[$key] = $this->_context->applyHandler($this, $method, $handler, $value, $options);
}
$strings = $this->_context->strings();
}
return String::insert(isset($strings[$string]) ? $strings[$string] : $string, $params);
}