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

at line 28
setLocale($locale)

{@inheritdoc}

Parameters

$locale

at line 36
getLocale()

{@inheritdoc}

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

{@inheritdoc}

Parameters

$id
array $parameters
$domain
$locale