+1 for message keys. Natural language as keys is an absolute pain in
the butt when it comes to maintaining a project...
On Feb 23, 2:50 am, Kris Wallsmith <kris.wallsm...@symfony-
project.com> wrote:
> I think these are both elegant compromises and would throw one more into the
> mix, borrowing from Javascript:
>
> {% trans topic.create_new || 'Create New Topic' %}
>
> Kris
>
> On Feb 22, 2011, at 5:40 PM, Dennis Jacobfeuerborn <
>
> [email protected]> 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
> athttp://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