You are here

public function TranslatorInterface::setLocale in Plug 7

Sets the current locale.

@api

Parameters

string $locale The locale:

Throws

\InvalidArgumentException If the locale contains invalid characters

5 methods override TranslatorInterface::setLocale()
DataCollectorTranslator::setLocale in lib/Symfony/translation/DataCollectorTranslator.php
@api
DefaultTranslator::setLocale in lib/Symfony/validator/Symfony/Component/Validator/DefaultTranslator.php
Not supported.
IdentityTranslator::setLocale in lib/Symfony/translation/IdentityTranslator.php
@api
LoggingTranslator::setLocale in lib/Symfony/translation/LoggingTranslator.php
@api
Translator::setLocale in lib/Symfony/translation/Translator.php
@api

File

lib/Symfony/translation/TranslatorInterface.php, line 65

Class

TranslatorInterface
TranslatorInterface.

Namespace

Symfony\Component\Translation

Code

public function setLocale($locale);