title: Get translated country name from a 2 digit country code in Symfony2/Twig?
body: <p>I'm using the Symfony2 <a href="http://symfony.com/doc/current/reference/forms/types/country.html" rel="noreferrer">country Field Type</a>, it works well and country names are translated. I am storing the two-digit country code in the column <code>country</code> of my entity.</p>
  
  <p><strong>How can I display the full, translated country name?</strong> This is how I added the field to the form:</p>
  
  <pre><code>$builder
      -&gt;add('country', 'country', array(
          'label' =&gt; 'Paese', 'preferred_choices' =&gt; array('IT')
      ));
  </code></pre>
  
  <p>And then in my controller:</p>
  
  <pre><code>$user = $this-&gt;getDoctrine()-&gt;getRepository('AcmeHelloBundle:User');
  $countryCode = $user-&gt;getCountry();
  $countryName = null; // Get translated country name from code
  </code></pre>
  
  <p>Or in my twig template:</p>
  
  <pre><code>{# Output the country code and name #}
  {{ user.country }}
  
  {# translated country name from code #}
  </code></pre>