TranslationTrait
trait TranslationTrait
Translation trait.
Methods
string
trans(string $id, array $parameters = array(), string $domain = 'messages', string $locale = null)
Translates the given message.
string
transChoice(string $id, int $number, array $parameters = array(), string $domain = 'messages', string $locale = null)
Translates the given choice message by choosing a translation according to a number.
Details
at line 31
string
trans(string $id, array $parameters = array(), string $domain = 'messages', string $locale = null)
Translates the given message.
at line 47
string
transChoice(string $id, int $number, array $parameters = array(), string $domain = 'messages', string $locale = null)
Translates the given choice message by choosing a translation according to a number.