IdentityTranslator
class IdentityTranslator implements TranslatorInterface, TranslatorInterface
IdentityTranslator does not translate anything.
Traits
A trait to help implement TranslatorInterface and LocaleAwareInterface.
Methods
trans($id, array $parameters = array(), $domain = null, $locale = null)
{@inheritdoc}
from TranslatorTrait
string
transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = null)
deprecated
Translates the given choice message by choosing a translation according to a number.
Details
string
transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = null)
deprecated
deprecated since Symfony 4.2, use the trans() method instead with a %count% parameter
Translates the given choice message by choosing a translation according to a number.