{# this dont work #}
{% trans %}Hello%name%!{% endtrans %}
{# this dont work #}
{% trans with {'%name%':name} %}Hello%name%!{% endtrans %}
Did a bit of searching and found that translatioon has problems with spaces
I have removed spaces after Hello
Symfony2+Twig, variable in translation return "A message must be a simple text"
Symfony2 twig translate variable values in {% trans %} tag
How to translate with pluralization in Twig?
this works
{{ 'Hello' | trans }} {{ name }}
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="191">
<source>Hello</source>
<target>Ciao</target>
</trans-unit>
</body>
</file>
</xliff>
so have to use Filters?
am using Symfony v2.4 + twig v1.15
Could someone Clarify?
TIA