You are here

public function TranslatorInterface::setLocale in Zircon Profile 8

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

Sets the current locale.

Parameters

string $locale The locale:

Throws

\InvalidArgumentException If the locale contains invalid characters

6 methods override TranslatorInterface::setLocale()
DataCollectorTranslator::setLocale in vendor/symfony/translation/DataCollectorTranslator.php
Sets the current locale.
DefaultTranslator::setLocale in vendor/symfony/validator/DefaultTranslator.php
Not supported.
DrupalTranslator::setLocale in core/lib/Drupal/Core/Validation/DrupalTranslator.php
Sets the current locale.
IdentityTranslator::setLocale in vendor/symfony/translation/IdentityTranslator.php
Sets the current locale.
LoggingTranslator::setLocale in vendor/symfony/translation/LoggingTranslator.php
Sets the current locale.

... See full list

File

vendor/symfony/translation/TranslatorInterface.php, line 57

Class

TranslatorInterface
TranslatorInterface.

Namespace

Symfony\Component\Translation

Code

public function setLocale($locale);