At validation, the required message is not translated because form.inc uses !name instead of !title.
The form_error should be as follows:
function checkbox_validate_element_validate($element, &$form_state) {
if (empty($element['#value'])) {
form_error($element, t('!name field is required.', array('!name' => filter_xss_admin($element['#title']))));
}
}
Thanks,
John
Comments
Comment #1
sashainparisIn SVN: not the same name function but seems to be OK
Is your code updated from svn?
Alexandre
Comment #2
realityloop commentedThese changes are in current D6 release