title: Manipulate the list of countries provided by Symfony Intl and the form choice type
body: <p>Politics aside, I need to provide <em>Kosovo</em> as a form choice when selecting a country.</p>
  
  <p>What's the most elegant way of doing this with Symfony's built-in form choice type <code>country</code>, while also providing translations for the <em>Kosovo</em> name?</p>
  
  <p>Here's what I've done so far and it works but I'm concerned this might be a bit hack-ish.</p>
  
  <pre><code>&lt;?php
  
  namespace Acme\Bundle\DemoBundle\Form\Type;
  
  use Symfony\Component\Form\AbstractType;
  use Symfony\Component\Form\FormBuilderInterface;
  use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  use Symfony\Component\Intl\Intl;
  
  class LocationType extends AbstractType
  {
      /**
       * @param FormBuilderInterface $builder
       * @param array $options
       */
      public function buildForm(FormBuilderInterface $builder, array $options)
      {
          // Kosovo is not listed as a choice provided by the method call
          // `Symfony\Component\Intl\Intl::getRegionBundle()-&gt;getCountryNames()`
          // although it is mostly recognized as in independent state, including by Google Maps.
          // This is because no ISO 3166-1 alpha-2 code as been assigned to that country.
          // However, a temporary code 'XK' is available.
  
          $countries = Intl::getRegionBundle()-&gt;getCountryNames();
          $countries['XK'] = "Kosovo";
  
          $builder
              -&gt;add('country', 'country', array(
                  'choices' =&gt; $countries,
                  'preferred_choices' =&gt; array(
                      'XK', // Kosovo
                      'AL', // Albania
                      'MK', // Macedonia
                      'ME', // Montenegro
                      'GB', // United Kingdom
                      'US', // United States
                  ),
              ))
              -&gt;add('district', 'text', array('required' =&gt; false))
              -&gt;add('town', 'text', array('required' =&gt; false))
          ;
      }
  }
  </code></pre>