You are here

public function DefaultTranslator::setLocale in Plug 7

Not supported.

Parameters

string $locale The locale:

Throws

BadMethodCallException

Overrides TranslatorInterface::setLocale

File

lib/Symfony/validator/Symfony/Component/Validator/DefaultTranslator.php, line 153

Class

DefaultTranslator
Simple translator implementation that simply replaces the parameters in the message IDs.

Namespace

Symfony\Component\Validator

Code

public function setLocale($locale) {
  throw new BadMethodCallException('Unsupported method.');
}