public function TranslatorInterface::setLocale

Sets the current locale.

@api

Parameters

string $locale The locale:

2 methods override TranslatorInterface::setLocale()
DefaultTranslator::setLocale in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/DefaultTranslator.php
Not supported.
DrupalTranslator::setLocale in drupal/core/lib/Drupal/Core/Validation/DrupalTranslator.php
Implements \Symfony\Component\Translation\TranslatorInterface::setLocale().

File

drupal/core/vendor/symfony/translation/Symfony/Component/Translation/TranslatorInterface.php, line 59

Class

TranslatorInterface
TranslatorInterface.

Namespace

Symfony\Component\Translation

Code

public function setLocale($locale);