title: Symfony2: locale, date and French format
body: <p>There is something I do not understand with locale management in Symfony2. I want to write month name in French with <em>date</em> Twig method. Is it possible? I can't do it.</p>
  
  <p>It seems that my locale is not taken into account. </p>
  
  <p>Here is my <em>app/config/config.yml</em> file:</p>
  
  <pre><code>framework:
      #esi:             ~
      translator:      { fallback: fr }
      secret:          %secret%
      charset:         UTF-8
      router:          { resource: "%kernel.root_dir%/config/routing.yml" }
      form:            true
      csrf_protection: true
      validation:      { enable_annotations: true }
      templating:      { engines: ['twig'] } #assets_version: SomeVersionScheme
      session:
          default_locale: fr
          auto_start:     true
  </code></pre>
  
  <p>Session locale seems good:</p>
  
  <pre><code>echo $this-&gt;get('session')-&gt;getLocale();  // Returns "fr"
  die;
  </code></pre>
  
  <p>Yet, when I am using, in my view, the following:</p>
  
  <pre><code>&lt;td class="month"&gt;{{ history.date|date('F Y') }}&lt;/td&gt;
  </code></pre>
  
  <p>It returns me "July 2011" for instance, instead of "Juillet 2011".</p>
  
  <p>What am I misunderstanding? Shouldn't the <em>date</em> filter be localized? If not, how can I do to retrieve correct terms? I used to use I18N to translate all the month names, but I do not think it is the best practice.</p>