class Translator extends Translator

Constants

GLOBAL_FALLBACK_DOMAIN

GLOBAL_FALLBACK_KEY

Methods

__construct( ContainerInterface $container)

No description

static  Translator
getInstance()

Return this class instance, only once instanciated.

getLocale()

No description

trans($id, array $parameters = array(), $domain = 'core', $locale = null, $return_default_if_not_available = true, $useFallback = true)

{@inheritdoc}

Details

at line 35
__construct( ContainerInterface $container)

Parameters

ContainerInterface $container

at line 51
static Translator getInstance()

Return this class instance, only once instanciated.

Return Value

Translator the instance.

Exceptions

RuntimeException if the class has not been instanciated.

at line 59
getLocale()

at line 77
trans($id, array $parameters = array(), $domain = 'core', $locale = null, $return_default_if_not_available = true, $useFallback = true)

{@inheritdoc}

Parameters

$id
array $parameters
$domain
$locale
$return_default_if_not_available
$useFallback