title: Symfony2 twig translate variable values in {% trans %} tag
body: <p>I'm working on a Symfony2 project and have a question from it.
  In one <strong>twig</strong> template I receive a variable from controller. It's a string and I need to translate it. But the syntax </p>
  
  <pre><code>{% trans %}{{ post['name'] }}{% endtrans %}
  </code></pre>
  
  <p>returns error "A message must be a simple text in...".</p>
  
  <p>So is there a way to translate the variable values???</p>