I'm more inclined towards not having the actual message in the controller layer, as suggested by Lukas, but we have to take into account the fact that, for simple things, it actually is more pain in the hands of the view author, specially when he's a designer and not a developer and the application being built has only one locale.
In that regard, there MUST be a fallback option for when we don't want to use the translation system. On 23 out, 06:35, Lukas Kahwe Smith <[email protected]> wrote: > On 22.10.2010, at 18:26, Miha Vrhovnik wrote: > > > Please don't forget, that above you have a very simple flash message. > > In my apps flash messages usualy have parameters, and all those will > > need to be passed to the view just for the sake of formatting a flash. > > I'm already smelling problems here, as one would easily forget to pass > > some params to view when refactoring app. > > Well you can have a similar issue when you use translations in that you > forgot to update the translations. So either way there is a need for tests > and proper reporting when the number of placeholders doesnt match the number > of parameters. Could there be cases where those numbers dont match up > intentionally? > > regards, > Lukas Kahwe Smith > [email protected] -- 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
