I haven't understood exactly how the xliff and twig files work together with Symfony2.
In my twig I wrote this
<article>{{ 'bye'|trans }}</article>
and the it xliff file "Resurces/translations/messages.it.xliff" (this is just a snippet)
<trans-unit id="2" datatype="plaintext">
<source xml:lang="en">Bye</source>
<target xml:lang="it">Ciao</target>
</trans-unit>
It works good and when the url language-segment is "it", it translates in it language (Ciao).
Instead, How I can make a similar thing without fall in error?
<trans-unit id="2" datatype="plaintext">
<source xml:lang="en"><a href="link.html">Bye</a></source>
<target xml:lang="it"><a href="link.html">Ciao</a></target>
</trans-unit>
Above there's just an example of what I would like to do. I sow a lot of stuff about this matter but I'm still confused.
The problem is when I should translate a string with HTML tags inside.
bye.html
andciao.html
? - althaus