On Tue, Oct 23, 2007 at 02:30:01PM -0400, John Siracusa wrote: > > Do you to be able to display the error message along with the field's > > lable? For example: > > Was that supposed to say, "do you want to be able to"?
That will work. It was suppose to bee "Do you mean to be able to" display the error message.." I pretty sure my mail server strips words from my mail and changes "now" to "not" in places as I review the messages before sending and they are perfect... > I tend to keep the field and label separate because the HTML designers > like to put them in separate places in the markup, but they could just > as easily be combined. (The error message (if any) is combined with > the field output in that example; it appears below the field it > belongs to.) My field() macro is the most generic since most of the times the forms are very similar. But I have separate macros to generate just the field, widget, and error message, of course. > The difference in our approaches is that there's no English text in my > Perl code or in the templates for my forms, just field names and > (occasionally) message ids. As is often the case, I think you can convince me on that approach. > > Yep, although I prefer to use English as the key to the language files > > instead of an ID. Easier to understand when looking at specific > > validation code. > > We have quite the existing translation system here at work (all our > business is overseas and we do 16 different languages), and using > English as the key is pretty much a non-starter in our system. (It > also makes it a bit harder to change the English text.) Do you have a "system" for picking error codes such that the don't get repeated? And when a new validation error id is added into the code does the programmer also update one of the language templates -- and then notifies the language team? -- Bill Moseley [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object