title: How to translate country names / a generic array in twig or controller in symfony2?
body: <p>I have an array filled with all countries name and I want to translate this names but I don't know how</p>
  
  <p>In my controller I did:</p>
  
  <pre><code>$countries = array("Afghanistan", "Albania", "Algeria", "Angola", ....);
  
  return $this-&gt;render('xBundle:x:xs.html.twig', array('countries' =&gt; json_encode($countries))
  </code></pre>
  
  <p>And in my template I have:</p>
  
  <pre><code>List : {{countries}}
  </code></pre>