[Solar-talk] Finding Locale for Filters
Benjamin Kaineder
benjamin at kaineder.com
Wed Apr 23 11:57:56 CDT 2008
I recently learned about Solar and I'm porting a small website with it's homegrown framework over to Solar.
I am having some problems with forms though. One is, the validation messages appear as INVALID_NOT_BLANK, INVALID_MIN_LENGTH etc. on the page. The localisation in the view or controller is working (e.g. the label's texts load correctly), but the message strings of the filters are not mapped apparently. I'm using the locale de_DE/de_AT, if I set it to en_US the expected message strings are displayed, loaded from Solar/Filter/Locale/en_US.php - which is not what I would want for my project (apart from the wrong locale).
Second, is there a way to have individual messages for each field? Assume I have two fields "email" and "phone", I'd want to have a string which says "Please fill in your email" and one that goes "Please enter your phone number (business hours)" instead of a generic "This value is not allowed to be blank", thus better instructing the users what to do.
br,
Ben
More information about the Solar-talk
mailing list