You are here

public function IdentityTranslator::setLocale in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/IdentityTranslator.php \Symfony\Component\Translation\IdentityTranslator::setLocale()

Sets the current locale.

Parameters

string $locale The locale:

Throws

\InvalidArgumentException If the locale contains invalid characters

Overrides TranslatorInterface::setLocale

File

vendor/symfony/translation/IdentityTranslator.php, line 37

Class

IdentityTranslator
IdentityTranslator does not translate anything.

Namespace

Symfony\Component\Translation

Code

public function setLocale($locale) {
  $this->locale = $locale;
}