title: Symfony 2 setting up translation files
body: <p>I am failing to setup translation for my Symfony 2 project. I have manually created a folder inside <code>app\Resources\translations\message.en.yml</code> and it's content:</p>
  
  <pre><code>base:
      title:
          homePage: TeamERP IMS for BA
  </code></pre>
  
  <p>Then on the base twig template inside my bundle I am trying to call it:</p>
  
  <pre><code>    &lt;title&gt;
          {% block title %}
              {{ base.title.homePage|trans }}
          {% endblock %}
      &lt;/title&gt;
  </code></pre>
  
  <p>Then on the <code>config.yml</code> I has the following:</p>
  
  <pre><code>framework:
      translator: { fallbacks: en }
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code> Variable "base" does not exist in TeamERPBaseBundle::base.html.twig at line 7 
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>Edit:</strong> after fixing the problem here:</p>
  
  <pre><code>{{ 'base.title.homePage'|trans }}
  </code></pre>
  
  <p>I stopped getting the error, thanks for that. now the page is not giveng the error but not loading the page with the warning in the logs fine:</p>
  
  <pre><code>[2015-05-01 12:42:57] translation.WARNING: Translation not found. {"id":"base.title.homePage","domain":"messages","locale":"en"} []
  [2015-05-01 12:42:57] translation.WARNING: Translation not found. {"id":"Home","domain":"messages","locale":"en"} []
  </code></pre>
  
  <p>Edit2: There was some kind of problem with my version of symfony 2.6. I just did a <code>composer update</code> due to <a href="https://github.com/symfony/symfony/issues/12941" rel="nofollow">this</a>, and it started working. normaly.</p>