Perhaps the following syntax could be used:

{% trans 'Create new topic' as 'topic.create_new' %}

and the "as 'topic.create_new'" bit could be optional.
This would allow to keep the current templates unchanged and add keys 
later/only when desired.
The problem is that you'd now have to look up the translation based on 
either the English text or the key though I'm not sure if this performance 
problem is reduced by the caching of the templates?

Regards,
  Dennis

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

Reply via email to