title: Symfony2 localization with JMSI18nRoutingBundle
body: <p>I installed with composer:</p>
  
  <p><code>"jms/i18n-routing-bundle": "dev-master"</code> and 
  <code>"jms/translation-bundle": "1.1.*"</code></p>
  
  <p>Then i add them to AppKernel file</p>
  
  <pre><code>new JMS\I18nRoutingBundle\JMSI18nRoutingBundle(), 
  new JMS\TranslationBundle\JMSTranslationBundle(),
  </code></pre>
  
  <p>After that I add this at the end of config.yml</p>
  
  <pre><code>jms_i18n_routing:
      default_locale: en
      locales: [de, en]
      strategy: prefix
  </code></pre>
  
  <p>Finally I have boundle with simply controller.</p>
  
  <pre><code>namespace Comflex\W2Bundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Symfony\Component\HttpFoundation\Request;
  use Comflex\W2Bundle\Models;
  
  class HomeController extends Controller
  {
      public function indexAction(Request $request)
      {
          $session = $request-&gt;getSession();
  
          $user = NULL;
          if($session-&gt;get('user')!== NULL){
              $user = $session-&gt;get('user');
          }
          $request-&gt;getSession()-&gt;set('_locale', 'en');
          $locale = $request-&gt;getLocale();
  
          return $this-&gt;render(
               'ComflexW2Bundle:Home:index.html.twig',
               array(
                  'user' =&gt; $user,
                  'locale' =&gt; $locale,
                  'authFormPlaceholder' =&gt; array(
                      'login' =&gt; $this-&gt;get('translator')-&gt;trans('LOGIN'),
                      'password' =&gt; $this-&gt;get('translator')-&gt;trans('PASSWORD'),
                  )
              )
              );
      }
  }
  </code></pre>
  
  <p><strong>routing.yml</strong> inside bundle</p>
  
  <pre><code>comflex_w2_home:
      path: /
      defaults: { _controller: ComflexW2Bundle:Home:index}
  </code></pre>
  
  <p>and two files with translations data (<code>message.de.yml</code> and <code>message.en.yml</code>)</p>
  
  <p>When I go to <code>http://localhost/symfony/web/app_dev.php/de/</code> or <code>http://localhost/symfony/web/app_dev.php</code> then both translation are correct, but when I add <code>/en</code> to URL then I get <code>No route found for "GET /en"</code>. How to fix it? And how to add <code>/en</code> or <code>/de</code> (dependending on the users language value) everytime when it's missing?</p>
  
  <p>example: <code>http://localhost/symfony/web/app_dev.php</code> -> <code>http://localhost/symfony/web/app_dev.php/en</code> when user language is <strong>english</strong> or <code>http://localhost/symfony/web/app_dev.php/de</code> when language is <strong>german</strong>.</p>