Hi all,

I have a problem with Twig templates and I18N.

I created a new Symfony2 project using Symfony2project (https://
github.com/Garfield-fr/Symfony2Project) and everything worked fine
until I decided to add I18N support.

I followed the official guide (http://symfony.com/doc/2.0/book/
translation.html):
 1 - I add
           framework:
                 translator: { fallback: en }
     to app/config/config.yml;

 2 - I created the translation file in
        src/vendorName/bundleName/Resources/translations/
messages.en.yml

 3 - I use the {% trans 'Text' %} tag in my Twig templates, but, when
I try to open a page,
     Symfony gives me the following exception:
      Unexpected token. Twig was looking for the "with" or "from"
keyword in
      "vendorNameBundleNameBundle:Main:index.html.twig".

Any idea of what is wrong?

Cheers
Elia

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to