I think default value is an option, not trans key. Translation keys must be required. Otherwise, it can cause lot of confusion!
--------------------------------------------------Konstantin Kudryashov (everzet) http://about.me/everzet/bio On среда, 23 февраля 2011 г. at 3:40, Dennis Jacobfeuerborn wrote: 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 > -- 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
