trait TranslatorTrait

A trait to help implement TranslatorInterface and LocaleAwareInterface.

Methods

setLocale($locale)

{@inheritdoc}

getLocale()

{@inheritdoc}

trans($id, array $parameters = array(), $domain = null, $locale = null)

{@inheritdoc}

Details

setLocale($locale)

{@inheritdoc}

Parameters

$locale

getLocale()

{@inheritdoc}

trans($id, array $parameters = array(), $domain = null, $locale = null)

{@inheritdoc}

Parameters

$id
array $parameters
$domain
$locale