title: Knp menu translations
body: <p>According to knp, <a href="http://symfony.com/doc/master/bundles/KnpMenuBundle/i18n.html" rel="nofollow">this</a> should be how you can easily add translations to your menu. It ain't working for me.
  My menu class:</p>
  
  <pre><code>public function createMainMenuLeft(array $options)
      {
          $menuLeft = $this-&gt;factory-&gt;createItem('root', array('childrenAttributes' =&gt; array('class' =&gt; 'left')));
  
          $menuLeft-&gt;addChild('test', array('route' =&gt; 'test_route'))
              -&gt;setExtra('translation_domain', 'AppBundle');
  
          return $menuLeft;
      }
  </code></pre>
  
  <p>In AppBundle/Resources/translations/messages.en.yml I have</p>
  
  <pre><code>test: nothing
  </code></pre>
  
  <p>However, my menu still has the label 'test' not the value from the translations file. Am I missing something here?</p>
  
  <p>My locale is set in <code>config.yml</code> to <code>en</code>.</p>