From 101a3b7b501b65838faad49fe51076011f0b72a9 Mon Sep 17 00:00:00 2001 From: Abdellatif Ait boudad Date: Tue, 22 Jul 2014 07:11:06 +0000 Subject: [PATCH] [FrameworkBundle][Translator] Validate locales. --- src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php index 0f99f6428e..8bf5353723 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php @@ -68,7 +68,7 @@ class Translator extends BaseTranslator public function getLocale() { if (null === $this->locale && $this->container->isScopeActive('request') && $this->container->has('request')) { - $this->locale = $this->container->get('request')->getLocale(); + $this->setLocale($this->container->get('request')->getLocale()); } return $this->locale;