When I use a php file as dictionary (Resources/translations/messages.en.php)
I get following exception:
An exception has been thrown during the rendering of a template ("Catchable
Fatal Error: Argument 1 passed to
Symfony\Component\Translation\Loader\ArrayLoader::flatten() must be an
array, integer given, called
in
my_project/vendor/symfony/src/Symfony/Component/Translation/Loader/ArrayLoader.php
on line 32
content of the php file:
return array(
'translate me' => 'translated',
);
in my twig template:
{% trans %}translate me{% endtrans %}
with xliff and yml dictionary files everything works fine...
Symfony2 Rocks!
Cheers
--
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en