You are here

public function DataCollectorTranslator::setLocale in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/DataCollectorTranslator.php \Symfony\Component\Translation\DataCollectorTranslator::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/DataCollectorTranslator.php, line 70

Class

DataCollectorTranslator
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Translation

Code

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