You are here

public function IdentityTranslator::getLocale in Plug 7

@api

Overrides TranslatorInterface::getLocale

1 call to IdentityTranslator::getLocale()
IdentityTranslator::transChoice in lib/Symfony/translation/IdentityTranslator.php
@api

File

lib/Symfony/translation/IdentityTranslator.php, line 53

Class

IdentityTranslator
IdentityTranslator does not translate anything.

Namespace

Symfony\Component\Translation

Code

public function getLocale() {
  return $this->locale ?: \Locale::getDefault();
}