Have you read the update.md file?

Line 93:

* The `trans` tag does not accept a message as an argument anymore:

    {% trans "foo" %}
    {% trans foo %}

  Use the long version the tags or the filter instead:

    {% trans %}foo{% endtrans %}
    {{ foo|trans }}


Hope it helps,
 
Daniel Gomes
 

 
m: +351 93 818 57 09
email: daniel.go...@reset.pt
web: http://www.reset.pt <http://www.reset.pt/index.html>






On 11/04/30 16:37, "John Blobsmith" <oliv.g...@gmail.com> wrote:

>Hi,
>I used in PR12 this code in twig template {% trans "test" %} but in
>beta1 it doesn't work.
>
>The error message :
>Unexpected token. Twig was looking for the "with" or "from" keyword in
>"BundleCreatorBundle::layout.html.twig".
>
>Do you know where is the problème ?
>
>-- 
>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


-- 
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