You are here

public function IdentityTranslator::__construct in Plug 7

Constructor.

@api

Parameters

MessageSelector|null $selector The message selector for pluralization:

File

lib/Symfony/translation/IdentityTranslator.php, line 33

Class

IdentityTranslator
IdentityTranslator does not translate anything.

Namespace

Symfony\Component\Translation

Code

public function __construct(MessageSelector $selector = null) {
  $this->selector = $selector ?: new MessageSelector();
}