cedriclombardot/AdmingeneratorGeneratorBundle — Issue #37: translate problem
Author: suncat2000
Created: 2011-11-08 11:21:52+00:00
State: open

In template:
*Resources/templates/CommonAdmin/EditAction/update.php.twig*

$this->get('session')->setFlash('success', 'The object was successfully saved');

return new RedirectResponse($this->generateUrl("{{ namespace_prefix }}_{{ bundle_name }}{{ builder.BaseGeneratorName ? "_" ~ builder.BaseGeneratorName : "" }}_edit", array('id' => ${{ builder.ModelClass }}->getId()) ));

} else {
$this->get('session')->setFlash('error', "The form can't be saved. Check errors and try to resubmit");

How i can translate this strings:
'The object was successfully saved'
"The form can't be saved. Check errors and try to resubmit"

{{ echo_trans( "foo" ) }} not suitable