Beta version

class TranslatorHelper extends Helper

TranslatorHelper.

Methods

__construct(Translator $translator)

No description

string
getName()

No description

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

Translates the given message.

string
transChoice(string $id, int $number, array $parameters = array(), null $domain = null, null $locale = null)

Translates the given message.

Details

at line 42
__construct(Translator $translator)

Parameters

Translator $translator

at line 50
string getName()

Return Value

string

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

Translates the given message.

Wraps the Translator trans method.

Parameters

string $id
array $parameters
null $domain
null $locale

Return Value

string

at line 86
string transChoice(string $id, int $number, array $parameters = array(), null $domain = null, null $locale = null)

Translates the given message.

Wraps the Translator transChoice method.

Parameters

string $id
int $number
array $parameters
null $domain
null $locale

Return Value

string