translation - [symfony 2]translate static text in twig with keyword messages -


i started french/english symfony based project , i'm trying translate static text keyword messages int twig template.

here messages.fr.xlf

<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> <file source-language="fr" datatype="plaintext" original="file.ext">     <body>         <trans-unit id="1">             <source>symfony2.great</source>             <target>j'aime symfony2</target>         </trans-unit>     </body> </file> 

and here twig template:

{{ 'symfony2.is.great'|trans }} 

the probelm show me symfony2.is.great instead of j'aime symfony2

thanks help


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -