From: David <da...@df...> - 2004-04-24 10:05:53
|
Hello, I don't like the idea too much to be honest. Formsess is like a tool box that provides you with what you need to validate a form and display errors but it's not meant to provide 'content' like errormessages itself. This is rather done for testing purpose or if you need to create a quick'n dirty form. As an technical tool Formsess is totally language independent and providing error messages in a certain language somehow conflicts with that imho. In the developement version (can be obtained from anon svn) you can use smarty syntax within errormessages however, dunno if that might possibly help you. - david ps: @katana: what do you think about that issue? On Wed, 31 Mar 2004 15:46:03 +0100 "Joao Campos" <joa...@ho...> wrote: > Here's the thing... The default error message displayed is easy to > change into anything our hearts desire, but using the field name is > usually not the nicest way of putting it to the user - e.g. "Make sure > that field 'SomeFieldName' isn't empty". I would like it to print > something exactely like that but using a 'prettyer name', like 'Some > Field Name' (afterall, the user doesn't need to know how I name my > fields) for the field. Of course you may say, just use the > message="blablabla 'Some Field Name'". Sure that works nice... But the > day I decide to change my error message, I would like to change it in > 1 place instead of scavenging through all my templates manually > replacing the message. Here's what I suggest... if some tag has the > attribute prettyname, use it instead of the name. Oh and store this > somewhere, for validators that need to access other fields can use it. |