Label Translation

13 views
Skip to first unread message

crey...@gmail.com

unread,
Oct 30, 2013, 6:48:57 PM10/30/13
to symfony2adm...@googlegroups.com
Hello,

I have a XXX-generator.yml.

I have in:

builders:
    list:
        params:
          object_actions:
            move_down:
                  icon: icon-chevron-down
                  label: %action.object.move.down%


My issue that UI get error that Fatal error: Uncaught exception 'Twig_Error_Runtime' with message 'Variable "action.object.move.down" does not exist in....

How can I set label something that then can translate it?

Thanks a lot.

Cédric Lombardot

unread,
Oct 31, 2013, 3:17:54 AM10/31/13
to Symfony2 Admingenerator bundles support for users

See https://github.com/symfony2admingenerator/AdmingeneratorGeneratorBundle/blob/master/Resources/doc/internationalization/generator-translation.md

Just put action.object.move.down and in Admin.xx.yml catalog set your translation

--
--
You received this message because you are subscribed to the Google
Groups "Symfony2 Admingenerator bundles support for users" group.
To post to this group, send email to
symfony2adm...@googlegroups.com
To unsubscribe from this group, send email to
symfony2admingene...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony2admingenerator?hl=en
 
---
Found bundle documentation at http://symfony2admingenerator.org/
 
---
You received this message because you are subscribed to the Google Groups "Symfony2 Admingenerator bundles support for users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symfony2admingene...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages