You are here

public function Translator::setLocale in Plug 7

@api

Overrides TranslatorInterface::setLocale

1 call to Translator::setLocale()
Translator::__construct in lib/Symfony/translation/Translator.php
Constructor.

File

lib/Symfony/translation/Translator.php, line 151

Class

Translator
Translator.

Namespace

Symfony\Component\Translation

Code

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