When I was doing plain PHP, I was simply doing this:
printf(_(\"Hello %s !\"), $name);
Now with Twig, I must use the trans tag. So I\'ve co
One missing bit with the previous answer is the "with" portion that is needed to do the replacement of the variable part of the message.
{% trans with {'%name%':name} %}Hello %name%!{% endtrans %}