public static function translate($id, array $options = array())
{
$defaults = array('count' => 1, 'locale' => Environment::get('locale'), 'scope' => null, 'context' => null, 'default' => null, 'noop' => false);
$options += $defaults;
if ($options['noop']) {
$result = null;
} else {
$result = static::_translated($id, abs($options['count']), $options['locale'], array('scope' => $options['scope'], 'context' => $options['context']));
}
if ($result = $result ?: $options['default']) {
return strpos($result, '{:') !== false ? String::insert($result, $options) : $result;
}
}